After some hair pulling and banging the keyboard against the monitor, I finally figured out how to poll the input without using event triggers. In the wiki, the author said I could use something similar to the mouse's configuration. However, I found this is not the case. If I want to poll a key, I'd have to do this instead:
if (input.Keyboard.KeyStates[KeyboardKeys.Up] == KeyState.Down)
I was confused by the wiki and tried this:
if((input.Keyboard.Keystates & KeyboardKeys.Up) == KeyboardKeys.Up)
That didn't work, and caused me grief.
But now that I figured it out, that leaves the rest of the game to be implemented. I've learned all the important things to do with the Gorgon engine, so the only things left are the gameplay mechanics. Main Menu is now fully operational. Now I need to add ship selection, upgrade menu, two players ship selection, and options.
Here's the goals I have for this game:
Multiple game modes:
- Classic mode (no upgrades, all asteroids are gray, one shot blows up each asteroid, survive as best as you can)
- Asteroids of Beyaan mode (upgrades, different types of asteroids, occasional different missions)
- Survival (select one asteroid type, then survive as long as you can)
- Protect the broken down ship(s) (one or more ships are broken down, and you must destroy all asteroids before they hit the ships, more money gained from more ships surviving)
- All of the above will be available in one or two players (hotseat) mode
Different types of asteroids:
- Gray (Normal)
- Brown (high mass, harder to destroy, pushes other asteroids out of its way)
- Blue (Magnetic, it will accelerate toward your ship due to magnetic pull)
- Red (Explosive, when shot, it explodes and incur damage on your ship if it's nearby, and pushes other asteroids away)
- Green (Money asteroid, break it down to smallest rock size, then fly over them to pick money up. Don't shoot the smallest one or they'll be destroyed!)
- Black (Similar to Gray, but very hard to see, especially when they're small. The only way to see where they are is by noticing which stars disappear behind it)
- Purple (Clumps together on impact. For example, two small would clump into a medium, and two medium clumps into one large. So if you shoot large one, but don't destroy the medium ones, they will clump back together)
Grr! This text box is having problems on Internet Explorer 8, I can't stay scrolled down, so I can't see what I'm typing..
Anyway, if you have ideas for other types of asteroids or game modes, let me know, and I'll see if I can incorporate them into the game.