Yesterday I got myself to cracking on adding the missile spawning system… Rudimentary and working. I have a generic maxMissiles variable, but I realized that I need a few variables to keep track.
maxMissileBaySize will be the largest the missilebay can be.
curMissileBaySize is the current size of the missilebay.
When I get the missilepowerup, I’ll do 2 things:
1) Add a certain number of slots to the curMissileBaySize, and then fill it up with missiles. If the curMissileBaySize == maxMissileBaySize then I set the spawnMoreBays boolean to FALSE. That way I won’t keep adding more slots for the missiles.
2) Increase the maxNumOfMissilesOnScreen by 1. This way I won’t need a separate “increase missile bay size” and “increase number of missiles on screen” powerups. That said, I will have these as separate functions, in case I do need to have them as separate concerns.
If I do this 3 times, I’ll have 4 missiles on screen at a time, and a max bay size of 13. I think this will work fairly well.
My next goals after this are implementing the base beam weapon and a nuke that destroys all asteroids on the screen (and will damage your ship slightly in the process, I think)… White hole and anti-matter field will round out the basic weapon systems, I think.
The beam weapon will require an energy meter that has to recharge over time, as will the white holes, anti-matter field and shield system.
I’m thinking of making a powerup for the shields that if you get hit, it transfers the energy into your energy meter instead of just absorbing the damage as the base shield would do.
Once I get the base weapons systems setup, I think I am going to refactor it all. I would refactor now, but I think I have the basic systems down and it’s easy to copy/paste code, so I do that now, then refactoring once it’s all there.
Once refactoring is done, I’ll start to implement the system to manage death screens and scores. I have a rudimentary system now, but want something more complete. One of my visions is to have little sayings at various levels of scoring. Right now I have one quote: “From stardust you came to stardust you must return”, but hope to have a large variety of things, as part of the process of exploration, so as players get higher and higher scores, new quotes will be revealed. Some will be philosophical some will some will be science, some will be religious, who knows, maybe a math equation or two 😛 Really tap into that whole scheme of experience of being in our universe. I even plan for at least one easter egg with the scoring system.
The achievement system, the tech tree, interstitial menus (to level up the tree), more audio effects, more visual effects to round out everything… I really have to stop slacking so much on this thing if I ever want it to see the light of day!