Commit Graph

48 Commits

Author SHA1 Message Date
Jeremy Rand
78d451657e Issue release 2.7. 2021-03-17 22:48:01 -04:00
Jeremy Rand
b477317279 Some fixes to the save option upgrade code and mark this as a beta build. 2021-03-15 00:37:47 -04:00
Jeremy Rand
8bb8f4511b Do not set the high bit of the read character to indicate that the apple key(s) are held down if the high bit is already set. 2021-03-12 00:38:54 -05:00
Jeremy Rand
3861bfc00c Add the option to change the keys used to navigate the gem board. 2021-03-12 00:14:05 -05:00
Jeremy Rand
8a7c234e61 Implement a series of fixes for Mockingboard speech support based on feedback from TomCh. Much of this is actually changed merged from the Mockingboard detection code from TotalReplay (also feedback from TomCh). Bump the version number to 2.6 to prepare for the next release. 2020-05-28 22:37:14 -04:00
Jeremy Rand
bc1cbc975c Fix an off by one error found by TomCh in the speech code which lead to the beginning of the next speech phrase to be played. This is why "excellent" sounded more like "excellent-ay". Worse, it would lead to the 5 bytes after the phrase "incredible" to be treated like speech data and who knows what that did.
Also, bump the version number to 2.6.a1 in preparation for a 2.6 release with these fixes.
2020-05-04 23:07:02 -04:00
Jeremy Rand
e21c7375f6 Ensure that the game hint is set correctly even after loading a new level. The key is to check for an "end of game" condition at the top of the main game loop. Unless there is a bug in the "next level" code, it will never been the end of the game when the next level starts. But it is the end of game check which also sets the hint square which is the first square it can find with a valid move. 2020-05-03 23:04:25 -04:00
Jeremy Rand
1d5eb0a636 Bump the version up to 2.5. 2020-03-30 23:35:32 -04:00
Jeremy Rand
0a5c8b5fe3 Detection of the //e card is buggy in the cc65 runtime so implement my own detection of this HW to workaround the buggy double lores implementation. 2020-03-24 02:06:45 -04:00
Jeremy Rand
49ccd2bfdc Add code to handle buggy double lores HW on the Apple //e card for the Mac. Apparently it doesn't handle the colour shifting that is required in the aux bank on other Apple // HW. 2020-03-23 23:28:28 -04:00
Jeremy Rand
d3d97db1f6 Only show the "enable/disable mouse" option if a mouse is actually present. Force the mouse option on when the options file is upgraded to the latest version. Allow mouse and joystick controls to co-exist. In past versions, the mouse interrupts messed up the joystick measurements but those are now done with interrupts disabled so that isn't a problem now. With this change, the mouse behaves like the mockingboard - it is auto-detected and just used but can be disabled if the user does not want it enabled even though present on the system.
Also bump the version number to 2.4.
2020-03-09 22:59:38 -04:00
Jeremy Rand
20ad7dda1c Add code from Total Replay to detect the sound chip automatically on startup. This then leads to a complete rethinking about how to save/load the options for the game. It used to ask what slot the mockingboard was in (if any) and whether it had a speech chip. Now, the game should just know this information. So, I turned the first boolean in the save file into an options file version byte and bumped it to "2". The boolean was always true and was kind of a very simple "magic number" to say that the contents was valid. Now it is a version number of the contents. The slot number and boolean for the speech chip is are now each turned into booleans - one to say whether to enable a mockingboard if found and the other to enable the speech chip if found.
This means there are three booleans in the options related to sound now.  The first one enables/disables sound entirely and is default on.  The second is only relevant if the sound is enabled and says "use a mockingboard if present".  Again this is true by default.  Finally, the this says "use a speech chip on the mockingboard if present" and is only relevant if the mockingboard is also enabled.

So, the basic approach now is to default the "best" sound options and auto-detect the sound HW at launch.  The user can then use the options to downgrade their sound all the way to basic Apple // sound or turn off the sound entirely.
2020-03-04 22:23:09 -05:00
Jeremy Rand
72fc265e5a Fix the mouse interrupt based VBL for the //c and //c+. This used to work under cc65 v2.13.3 but when I moved the codebase to cc65 v2.17, the mouse driver interrupt handler changed. It used to call the "show" callback routine when handling the interrupt. In v2.17, it stopped calling "show" from the interrupt handler and instead called a new "draw" callback. Because the "show" callback was not being called, the game would wait forever for a VBL interval on the //c and //c+. This fixes the problem by setting the "draw" hook to my VBL callback on the //c and //c+.
Bumped the version number to v2.3.
2020-02-26 22:36:42 -05:00
Jeremy Rand
2c981b6f1d Do not turn on joystick control by default on first launch. Keyboard and mouse are the primary interfaces and joystick is just an option which can be turned on (but is a bit weird so not on by default). 2020-02-20 22:16:03 -05:00
Jeremy Rand
7955b7a0ec And bump the version number. 2020-01-30 22:57:32 -05:00
Jeremy Rand
7b7847d391 Ported some mockingboard detection code from Total Replay into the startup. If there are no game options saved, then it tries to detect a Mockingboard and use it automatically. No detection for a speech chip yet (although that may be coming and if so, I will port that in also). 2020-01-30 22:56:47 -05:00
Jeremy Rand
c67874ca74 Total Replay would like a jump to $100 when the game quits. This change should do that. The version number also got bumped too 2.2a2. 2020-01-29 22:02:39 -05:00
Jeremy Rand
879030f4ff Use uppercase for the file names because that works better with Total Replay. Fix a problem where HISCR is left on after switching to mixed mode. Fix bugs with formatting of the text when saving the game, prompting for the next level and notifying that the end of the game has been reached in mixed text mode. 2020-01-29 00:31:19 -05:00
Jeremy Rand
e8783b019b Add a build option in the Makefile for a Total Reply build. For a TR build, we have a special quit handler which jumps to a special vector. Also in a TR build, ".tr" is appended to the version number to make it clear it is a TR build. Bump the version number up to 2.1. 2020-01-24 21:46:51 -05:00
Jeremy Rand
34e320a605 Make the project clean of 65c02 instructions. This should let this run on an unenhanced //e. 2020-01-22 23:31:42 -05:00
Jeremy Rand
1f24457a8a Say "good", "excellent" and "incredible" on long chain reactions. 2016-12-24 01:49:20 -05:00
Jeremy Rand
9bca2bc307 Modify options to allow enabling mockingboard and speech chip support. Hook up mockingboard and speech support. 2016-12-23 22:51:45 -05:00
Jeremy Rand
36ed166670 Add mockingboard library and start reworking the sound code to prepare to integrate it. 2016-12-20 00:05:41 -05:00
Jeremy Rand
f6dba77ec2 Bump the version number to 1.2. 2016-09-12 22:22:41 -04:00
Jeremy Rand
fc5399e329 Disable interrupts while reading from the joystick. By doing this, we can have the mouse and joystick drivers both enabled at the same time. Do not disable the mouse driver when mouse input is disabled. Register a "show" callback with the mouse driver and use that as a way to be notified of a VBL interval on the //c. 2016-09-06 22:55:05 -04:00
Jeremy Rand
1c173b90b3 Bump beta build number. Inline and unroll the draw loop for gem drop to make drawing faster. Fix a problem with detecting matches on gem drop where we might miss some matches. 2016-09-01 00:05:31 -04:00
Jeremy Rand
fae32b84f9 Fix a problem on the GS where the messages on the bottom four lines in mixed text/graphics mode ended up being displayed over the graphics because the text window was setup incorrectly. Move the mouse to the square if the user jumps to another square using keyboard arrow keys or jumping to a hint. 2016-08-24 01:18:19 -04:00
Jeremy Rand
4ecae7ea50 Bump the beta version number. Change the colour of the score bar on the right side of the screen. Add a new machine API and put the machine specific aspects of VBL in there. Slow down the CPU on the GS on launch and restore the speed on quit. Fix a problem where the "next level" text wasn't displayed correctly on the GS for some unknown reason. 2016-08-23 20:23:26 -04:00
Jeremy Rand
ac41acedfc Add a version number to the splash screen. 2016-08-23 01:06:14 -04:00
Jeremy Rand
229ed4dac6 Fix problem which prevented options from saving correctly. Clean up the mouse poll function to make the mouse control better. 2016-08-22 23:47:29 -04:00
Jeremy Rand
82cae1f613 Add the ability to set options in the game and save/load those options. Some general code cleanup. 2016-08-20 00:08:29 -04:00
Jeremy Rand
7995aefa4f Add mouse support. 2016-08-19 00:08:38 -04:00
Jeremy Rand
cb1ae69c00 Add unique sounds when gems explode, when a gem is starred and when a special gem is created. Tweak the appearance of a starred gem. 2016-08-17 00:07:00 -04:00
Jeremy Rand
27d1e1c314 Fix double lo-res colour problem. Improvements to instructions and get open apple key working. Fix a problem where the blue gem was not being generated from the random gem routine. 2016-07-26 01:26:24 -04:00
Jeremy Rand
7c3a9a17ad Add initial joystick support. 2016-07-24 18:22:37 -04:00
Jeremy Rand
3cd2430203 Add some sound to the game. 2016-07-22 17:18:15 -05:00
Jeremy Rand
45688cb6ba Add gem drop animation. 2016-07-22 16:45:15 -05:00
Jeremy Rand
f66715e9d2 Add animations for square swaps. 2016-07-22 14:48:49 -05:00
Jeremy Rand
1dcaf783f6 Add animations for clearing gems. General code cleanup. 2016-07-22 12:04:47 -05:00
Jeremy Rand
49be2a9e50 Add star animations. 2016-07-22 10:43:18 -05:00
Jeremy Rand
a9fd3c23a6 Only check for no more moves after a move has been made. 2016-07-22 10:02:25 -05:00
Jeremy Rand
66e6295cf7 Add support for saving and loading a game in progress. 2016-07-22 00:11:36 -05:00
Jeremy Rand
b1716ce5ee Improve the game over screen. Add a level up screen. More fixes to basic game mechanics. 2016-07-21 23:45:07 -05:00
Jeremy Rand
eb0e550c25 Display an indication of the score on the right hand side of the screen. Proceed to the next level when the score maxes out. Make each level harder than the last. Lots of fixes to basic game mechanics. 2016-07-21 14:33:31 -05:00
Jeremy Rand
3573f8e9d4 Add the ability to see the star state of a gem. 2016-07-20 23:55:29 -05:00
Jeremy Rand
2b92b2684a Added most of the support for dynamic changes in the game. Step through the changes for now to debug. 2016-07-20 23:39:06 -05:00
Jeremy Rand
79609ebe86 Fix bug in match finding algorithm. 2016-07-20 20:17:17 -05:00
Jeremy Rand
b91c015edd Start building the game logic and the UI. 2016-07-20 19:53:52 -05:00