Commit Graph

229 Commits

Author SHA1 Message Date
Jeremy Rand e84d6e97c2 Update the version to beta and remove online high scores from the todo list. I now have an implementation of that. 2021-06-06 00:24:35 -04:00
Jeremy Rand abe5f0c72b Uploading scores is working now. Add timeouts for reads and the close operation so we don't end up stuck in any one state forever. Improve the error handling and provide an error code for debugging purposes if there is a problem. 2021-06-05 23:34:30 -04:00
Jeremy Rand 2c511fe33a Add some todos for the networking code. 2021-06-04 00:42:39 -04:00
Jeremy Rand 4e456cab15 Major rework because I am out of code space in the main segment. Move some stuff around in the C code to get them into other segments. Change the network code so that most of its globals are actually allocated dynamically when network functionality is detected. Change the network state machine so the connection is closed and re-opened on each transaction rather than trying to hold the connection open. It was failing during the game because the network is not being polled. Provide some visual feedback if there is a network problem in the game itself.
Re-opening the connection isn't working for some reason but this is getting pretty close to working.
2021-06-04 00:41:11 -04:00
Jeremy Rand fb36a28e98 With this commit, processing of the result of a score set request is working. The connection seems to drop during the game and I don't want to poll the network during the game so the next steps will be to close and re-open the connection between games. 2021-06-03 00:32:56 -04:00
Jeremy Rand 9a77919702 Update some TODOs in the code. 2021-06-02 00:39:05 -04:00
Jeremy Rand 14cbdbac2b Fix a problem where the players initials were not going to the correct place in the global high score request. Make the set high score request message a multiple of 2. It seems that the hash functions do not agree between the GS and the server when the request is an odd number of bytes. 2021-06-02 00:33:53 -04:00
Jeremy Rand 35930c72e2 Add the code to send high scores to the server, although it is being rejected right now due to a md5 hash problem in the request that I don't yet understand. 2021-06-01 23:53:52 -04:00
Jeremy Rand 5e26684fd2 Retrieve global high scores from the Internet and display them in the game. 2021-06-01 23:13:14 -04:00
Jeremy Rand 4b76293125 Add code to load Marinetti and the Hash tool if present and bring up the network if possible. 2021-06-01 00:35:47 -04:00
Jeremy Rand 8d95d0a674 Bump the version to 1.9 since this is work towards v2.0. Add the structs for the messages to a server side high score list. Add the hash tool to the boot image for network testing. The requests will use hashes to validate that they come from the game. 2021-05-28 00:03:04 -04:00
Jeremy Rand 701d9fd312 Add some infrastructure to be able to test networking code from within the emulator. 2021-05-20 23:49:14 -04:00
Jeremy Rand c3302102d7 Update the readme with some more feedback about trackballs. 2021-03-25 17:03:38 -04:00
Jeremy Rand dfcf6a66b6 Turns out I only have fixed the "magically appearing mushroom" bug. I fixed it for slow moving centipedes coming on screen but there was a second case of the same problem for fast moving centipedes. So fix that now also. Bump the version number to 1.0.1. I will do a patch update at some point but I don't think this bug deserves pushing out a quick release update. It is an annoying minor bug at most. 2021-03-03 22:20:22 -05:00
Jeremy Rand cb47d1ff0d Update the TODO with information about running on System 5. 2021-02-24 22:45:56 -05:00
Jeremy Rand 34d5523c19 Add a new TODO to try to fit a bootable image on a single 800K disk. 2021-02-24 17:14:51 -05:00
Jeremy Rand 6b7221ed23 Add links to the version 1.0 downloads in the readme. 2021-02-17 00:05:02 -05:00
Jeremy Rand bbe4bd7c6a Version 1.0 is released! 2021-02-16 23:36:06 -05:00
Jeremy Rand c52671ce95 Change the flea sound frequency change rate to be less steep. 2021-02-16 01:46:46 -05:00
Jeremy Rand bf943fee07 Bump the version number. 2021-02-16 01:39:27 -05:00
Jeremy Rand 20b2b6b6af Fix a typo in the readme. 2021-02-16 01:38:52 -05:00
Jeremy Rand 7d5d24de2e More readme updates. 2021-02-14 16:46:20 -05:00
Jeremy Rand d7bfef38b7 Update the project readme. 2021-02-14 16:45:42 -05:00
Jeremy Rand bcc10e2d4e Bump the version 0.9.7. Add some code to preload the sounds after initial launch so starting the first game doesn't take extra long. 2021-02-14 14:59:44 -05:00
Jeremy Rand 0e1e35c7cb Lots of updates to the readme. Add some bars along the left and the right to delineate the play area. 2021-02-12 17:31:30 -05:00
Jeremy Rand 10c8111397 Mark support for Versions as done. 2021-02-10 00:19:43 -05:00
Jeremy Rand a890cc8212 Bump the version. Fix the download URL resource. Fix a typo in the readme file. 2021-02-09 23:10:37 -05:00
Jeremy Rand b87d3e8870 Update the version information and add a readme to the distribution. 2021-02-09 01:01:11 -05:00
Jeremy Rand c0b76e46bc Add the icon into the resources so if the Icon folder isn't copied, the icon of the application will be preserved in the resources. Start to add some of the resources to support Versions updates. 2021-02-05 00:14:24 -05:00
Jeremy Rand 49c17c2005 Bump the version number to 0.9.5 beta. 2021-02-01 22:32:20 -05:00
Jeremy Rand e213cc918b Fix the last known bug. The "Game Over" screen is now shown when the first of the two players in a two player game runs out of lives. 2021-02-01 22:31:53 -05:00
Jeremy Rand f6ecb9bf65 Add some comments about my testing at 50Hz and add a new bug for the lack of a "GAME OVER PLAYER #" message in a two player game. 2021-01-27 23:28:06 -05:00
Jeremy Rand 94738ca54c Change the template BuGS.2mg disk image so that the BuGS executable is clearly visible in the finder window. 2021-01-26 23:16:37 -05:00
Jeremy Rand 23b37d095b Fix the mysterious appearing mushroom bug. 2021-01-26 00:25:35 -05:00
Jeremy Rand da99d84437 Update the bug list. 2021-01-25 10:53:21 -05:00
Jeremy Rand 7382a7f4aa Just do writes to the DOC when initializing the sound without a read check. The read check seems to fail for the size register for some reason. Bump the version number. 2021-01-24 14:04:49 -05:00
Jeremy Rand 13f8602048 Finish changing the sound code to adopt the new method for modifying registers. 2021-01-23 11:39:01 -05:00
Jeremy Rand 9d42dd3c59 Move to a table based approach for setting up the DOC registers, still have some more sounds to move to the tables. 2021-01-22 17:44:13 -05:00
Jeremy Rand a7b404c676 Turn on optimizations on the C code to make it smaller. Ran out of code space in the main 64k bank. More changes to the sound register accesses. 2021-01-22 14:41:05 -05:00
Jeremy Rand 25765e6975 More rework from last night of the sound code to adopt new register writes. 2021-01-22 14:15:22 -05:00
Jeremy Rand 0d681e3571 Move more sounds to the new modify and verify method of writing to the DOC. 2021-01-22 00:52:41 -05:00
Jeremy Rand a4a4b9ae4d Start to change the sound code to wait for the doc to be free and to write and then read to verify that the register write succeeded or try again. That seems to cleanup the sound on real HW. I have only done this for the bonus and the firing sound but probably all register writes should be done this way. 2021-01-22 00:34:07 -05:00
Jeremy Rand cf85ec4cb3 Update the version information. 2021-01-20 22:33:09 -05:00
Jeremy Rand 14cef25d9b Mark this build as 0.9.3 beta. I think this project is now feature complete for release. 2021-01-20 22:20:43 -05:00
Jeremy Rand 2a52b21f8a Fix bug where the flea sometimes would appear before the second level actually started. 2021-01-20 22:14:59 -05:00
Jeremy Rand 815758f3ff Rework the game logic to support one and two player games. 2021-01-20 00:06:32 -05:00
Jeremy Rand 3a77ba1367 Add the source wav files that I used for the sound samples and add a script which I used to convert them to a raw format that can be played on the GS. That should make it easier to modify the sounds if necessary in the future. Converting the sounds from wav to raw is not part of the build. The raw files themselves are committed in the repository although the build could be changed to generate the raw sounds at build time. 2021-01-18 00:34:50 -05:00
Jeremy Rand 1b7d2e240b Fix a bug where it was possible for the player to collide with an exploding bug and then die. Change explosions so they are drawn using background colours which do not result in player collisions. 2021-01-18 00:18:31 -05:00
Jeremy Rand 678a9ee104 Add code to keep track of two separate screens of mushrooms for player 1 and player 2. 2021-01-17 14:51:36 -05:00
Jeremy Rand 230d1f344c Fix the message to print the right player number when there is a high score. 2021-01-14 23:18:52 -05:00