O'Reilly logo

Sams Teach Yourself Windows® Phone 7 Game Programming in 24 Hours by Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 23. Rocket Science: Acceleration

What You’ll Learn in This Hour:

Building the game

Gravity well regions

Enhancing MassiveObject

Gameplay source code

Now we can begin working on the gameplay involving user input and the logic for the game. This first part of the game developed this hour will focus on the player’s spacecraft, the black hole, and objects moving in space. The player will need to orient and fire energy-gathering satellites into orbit around the black hole to gather energy, while the ship is also consuming energy to maintain its position. The goal of the game is to get enough energy to keep the ship from falling into the black hole. There will be little by way of polish in this hour, with just the primary gameplay being ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required