Commit Graph

3597 Commits

Author SHA1 Message Date
Stephen Anthony 3bb21cdbf3 Restored TIA::height functionality, otherwise the window won't be properly sized. 2016-12-02 10:16:49 -03:30
Stephen Anthony b34514e7f4 Implemented TIA::scanlines(), which now shows the proper scanline count in
the info window in the upper-left of the screen.  Still TODO is tie it to the
framerate, so that when the scanline count changes, it also auto-calculates
the framerate.

Some formatting cleanups in various classes.
2016-12-02 10:07:25 -03:30
Christian Speckner a8a4545222 Typo, more concise variable names. 2016-12-02 09:30:40 +01:00
Christian Speckner a717890c29 Microoptimization: pre-invert collision bitmasks. 2016-12-02 09:05:35 +01:00
Christian Speckner a1eb8fd9ab Add toggle logic to all sprites. 2016-12-02 08:58:19 +01:00
Christian Speckner 920787aa9f Sprite toggeling for missiles. 2016-12-02 01:11:54 +01:00
Christian Speckner 042dc72e66 Paddles / analog input. 2016-11-28 12:54:46 +01:00
Christian Speckner 3e4b975489 Add missing file. 2016-11-26 21:08:23 +01:00
Christian Speckner d66a58557b Always trigger draw during resbl, even during hblank. 2016-11-26 21:05:03 +01:00
Christian Speckner 34810ab25e Fix uninitialized value. 2016-11-26 15:36:43 +01:00
Christian Speckner 4fd2c71510 Merge remote-tracking branch 'remotes/upstream/git-svn' 2016-11-26 14:48:40 +01:00
Christian Speckner 92ec526d68 Simplify priority logic in score mode. 2016-11-26 13:37:19 +01:00
Stephen Anthony 1924013daf Fixed write to CTRLPF with score mode enabled and playfield priority disabled;
the priority as well as the colours change from left/right screen.

Made getPixel method from each of the TIA objects inline, since they're called
so often.
2016-11-25 22:02:00 -03:30
Christian Speckner 7fad9b7cfa Fix fractiona counter initial value. 2016-11-26 00:18:18 +01:00
Christian Speckner 2bd5074828 Add latched input. 2016-11-26 00:08:32 +01:00
Christian Speckner e786b3307e Add resmp. 2016-11-25 23:23:04 +01:00
Stephen Anthony 6818da1566 Added savestate 'plumbing', for when the new TIA classes are finalized.
Bumped lowest version of state file format to 4.8, to make sure old
state files will not be loaded.
2016-11-25 14:58:07 -03:30
Christian Speckner eebf8c046f Collisions, basic input (no lateched input, no paddles). 2016-11-25 01:31:57 +01:00
Christian Speckner d2c9813da1 Fix timing to properly account for "fractional" system clocks -> bang! runs glitch free. 2016-11-23 23:59:32 +01:00
Christian Speckner cac9bf76c7 Delay queue fixes --- should be academic. 2016-11-23 23:55:10 +01:00
Christian Speckner d02c985a91 Add ball. 2016-11-22 23:22:16 +01:00
Christian Speckner 95c1d2b08c CS. 2016-11-22 21:56:50 +01:00
Christian Speckner 3a4827e0b8 Add a missing line cache invalidation -> fixes bang! plasma field. 2016-11-22 21:56:12 +01:00
Stephen Anthony ec2ee2c570 Added some 'Stella-isms' to the new TIA core code, like brace placement,
comment lines above each method, deleting new/d'tors whenever possible, etc.

Rename Missile.cpp to Missile.cxx.
2016-11-22 15:44:20 -03:30
stephena e43e56f8ab Updated version for 4.7.3 release.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3320 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2016-11-21 19:21:25 +00:00
Christian Speckner 14b701ef72 Fix accidential fallthrough in switch -> fixes funky space invaders. 2016-11-20 23:39:47 +01:00
Christian Speckner d9f91caab3 Don't reset autodetected TV mode on reset -> fixes TV mode autodetection. 2016-11-20 22:22:07 +01:00
stephena 81844dbf7f Preparing for 4.7.3 release.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3319 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2016-11-20 21:13:42 +00:00
Christian Speckner ac4520917e Add players. 2016-11-20 22:07:10 +01:00
Christian Speckner 87b24a5bba Coding style, hmmClocks can be 8bit. 2016-11-18 00:08:12 +01:00
Christian Speckner 594c460bc7 CS. 2016-11-17 23:25:13 +01:00
Christian Speckner 666028b66d TODO. 2016-11-17 23:24:38 +01:00
Christian Speckner baecc4e3a1 Fix timing glitch, port missiles. 2016-11-17 23:24:12 +01:00
Christian Speckner c8dc5e2db9 Fix delay queue, add delay to pfx writes. 2016-11-16 23:19:54 +01:00
Christian Speckner cdafe8d0a4 Playfield. 2016-11-16 01:18:44 +01:00
Christian Speckner 2d76b7fb98 Hook up audio. 2016-11-15 21:24:20 +01:00
Christian Speckner 6d76d65d82 Add wsync, vsync and vblank, fix bugs and connect the dots -> main loop + tv mode detection work. 2016-11-15 21:16:36 +01:00
Christian Speckner 70dc29f077 Port main loop. 2016-11-15 19:26:23 +01:00
Christian Speckner b6a2e266aa CS. 2016-11-13 22:56:58 +01:00
Christian Speckner ea6abb0fe6 Implement delay queue. 2016-11-13 22:56:02 +01:00
Christian Speckner b874269065 Replace executor class with a template --- we've got closures, after all :) 2016-11-13 00:10:40 +01:00
Christian Speckner 208f630a3c Implement delay queue (untested). 2016-11-08 23:54:22 +01:00
Christian Speckner a99a4e1efd Stub implementation of new core. 2016-11-08 01:26:57 +01:00
Christian Speckner ffccc351f6 Allow to switch between TIA implementations via command line / config. 2016-10-31 00:12:52 +01:00
Christian Speckner 4188d766fb Tabs vs. spaces. 2016-10-30 21:03:52 +01:00
Christian Speckner 2075ff082a Prepare build system for new core. 2016-10-30 21:00:08 +01:00
Christian Speckner c642de2671 Remove unnecessary dependencies on TIA, namespace default core, remove friends. 2016-10-30 20:29:41 +01:00
Christian Speckner 83417e976f Isolate TIA implementation in sub-module, remove all direct references in favor of AbstractTIA. 2016-10-30 00:31:55 +02:00
Christian Speckner 9a85bf5405 Fixes, refactor TIA to extend AbstractTIA . 2016-10-26 15:25:48 +02:00
Christian Speckner cdfac18f1c Fix build w/o debugger. 2016-10-26 14:59:52 +02:00