12 More enemies

This chapter covers

  • Defining more enemy types
  • Keeping track of enemies
  • Changing our enemy spawn code
  • Changing our enemy movement code
  • Making our smart bomb smarter

So far, our game only has one type of enemy, which always moves the same way. This does not present much of a challenge to the gamer and does not make the game very interesting.

In this chapter, we are going to look at how we define different types of enemies in our game code. Then we will look at how we will keep track of more information about each enemy. This will allow us to make the enemies move in different directions and patterns and to introduce some animation.

12.1 Defining more enemy types

To make our game more interesting, let’s add some more enemy types ...

Get Classic Game Programming on the NES 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.