O'Reilly logo

Building iOS 5 Games: Develop and Design by James Sugrue

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6. Shoot to Kill

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 Sprite Class

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required