Chapter 4. Asteroid Belt Assault – Lost in Space
Mid-way through the hyperspace jump to the rim territories, something went wrong. Your hyper-drive engine shut down, and you found yourself suddenly back in normal space, in the middle of a massive asteroid field.
To make matters 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 frame-based animated sprite handling
Building a scrolling sprite-based star field background
Creating asteroids that can collide with each other
Building a
ShotManager
class that will track projectiles fired by both the player and enemy shipsAdding a player-controlled star fighter
Adding enemy fighters that fly a set of waypoints across the screen