CMM2 Defender Clone
Author | Message | ||||
PeteCotton Guru Joined: 13/08/2020 Location: CanadaPosts: 369 |
Well, for better or for worse, here's my first program for the Maximite. Defender. To be honest it just started out as me playing around (up until yesterday the file was still called "test.bas"). I don't claim that it's well programmed, it was very much just me screwing around. I knew I wanted to play with parallax scrolling, and before I knew it I had a passable defender clone (a testament to the CMM2's ease of use - not my programming prowess). Buoyed by encouragement from the Maximite Facebook Page guys, I'm publishing it here - warts and all. I did go through and comment some of the code - but it was really a great learning experience for me. The main thing I learned was that the first line I should have typed was "option explicit". I was having a great old time using undefined variables with gay abandon like an absolute maniac, however that came back to bite me during debugging. I will also plan my sprite/bitmap management better next time. Next time I will also impose a proper naming convention. I started using the one I use for C/C#, but quickly realised that it didn't fit, so then I tried another convention and finally a third. I would argue by the time you have three different naming conventions in the one program.... you technically do not have any naming convention. I also need to learn how to do proper sound effects (this one just has simple waves), but like I say it was never intended for public publishing - just for me to learn. But for all of that, it's here. I hope you enjoy it. I'm going to move on from it, I feel this code has done it's job for me, which is to highlight the mistakes I made, and also teach me what "I don't know" yet. To that end, I'm going to program another tech demo next, and use it to fill in the massive blanks in my knowledge. Once that is done, then hopefully I'll be ready to start writing a "proper" game. One that I won't be ashamed to show you guys the source code for :-D The Defender source code can be downloaded from here, Defender.zip or from my OneDrive here: https://1drv.ms/u/s!AnkZn9N9Pt1fp7cb52Ygsl0E8RJYWg?e=zWLTdJ Edited 2020-09-06 04:51 by PeteCotton |
||||