In the Intellivision game of Astro Smash, which 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’s surface.
In this episode, we are going to introduce collision detection, which will involve:
- Adding a function that will determine if two objects have collided.
- Calling the function from inside our existing MOVE_ENEMIES routine.
The supplied code has two folders, Start, where we start the episode and End, the final code and a copy of the ROM file.
The video associated with this episode is locatedĀ here:
The full article text is in the attached PDF documentĀ here.