Chapter 4. Asteroid Belt Assault – Lost in Space

Mid-way through the hyperspace jump to the rim territories, something went wrong. Your hyperdrive engine shut down and you found yourself suddenly back in normal space, in the middle of a massive asteroid field.

What is worse, the field appears to have been a hiding spot for a group of enemy fighters intercepting communications from the Earth Fleet.

In this chapter, we will begin the construction of Asteroid Belt Assault by:

  • Creating the base Asteroid Belt Assault project and structure
  • Creating a class for animated sprite handling
  • Building a scrolling sprite-based star field background
  • Creating asteroids that can collide with each other
  • Building a "Shot Manager" class that will track projectiles fired ...

Get XNA 4.0 Game Development by Example Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.