An action game without some kind of enemy is not much of a game at all. Raiders will have three types of enemy sprites, each with different traits and intelligence. In this chapter, you will create those enemies and learn how to program some basic artificial intelligence that will make the game more challenging.
Enemy sprites are among the most important aspects of many games. Enemy sprites that have a bit of intelligence, or even character, make a game more interesting and fun to play, and can also make it more memorable and addictive.
In Raiders, you’ll create three types of enemy:
• The DumbSprite has little or no intelligence. These sprites simply drop down in a straight line and then return to their original ...