Game Development Reference
In-Depth Information
4.
Set the Launch Action as Launch Default Activity, and click Run.
Stand by for the emulator window. You should see the game starting with the message Game Over
and some asteroids floating around the screen. Press S to start the game and try some of the game's
features (see Figure 4-5):
Move the ship around using the arrow keys. You should see the thrusters fire and
hear the thrusters' sound. The ship should wrap around when it goes off the
screen.
Press the space bar to fire the gun. Make sure the photons display (and that the
sound plays) and the asteroids are destroyed when hit.
Press the H to jump into hyperspace. The ship should disappear and reappear in a
random location. Make sure the sound effect is played.
Try to get a high score, and make sure the UFO shows up on screen and fires the
missile against you.
Press E to terminate the game when you get bored.
Figure 4-5. The Asteroids game in action
Search WWH ::




Custom Search