In the Intellivision game of Astro Smash, that we are basing our game on, the main enemies are Asteroids that fall down the screen, exploding when they hit the ground.
Points are awarded to the player, when one is destroyed and points are removed if one reaches the planet surface.
In this episode we are going to introduce some simple enemy movement, this will involve:
- Using a random number generator to determine when an asteroid should appear and at what speed.
- Moving any visible asteroids towards the bottom of the screen.
- Detecting when an asteroid reaches the bottom of the screen.
The supplied code has two folders, Start, where we start in this episode and End the final code and a copy of the ROM file.
The video associated with this episode is located here.