Table of ContentsThe EnemyChapter 11.            The World

Conclusion

In this chapter, you've covered moving objects around in arbitrary directions, computing angles and distance, and adding basic AI to your enemies. To see how it all comes together take a look at the "EnemyTest" example in the Chapter 10 source code on the CD. It's a really cool look at an enemy ship chasing after the player's. I've even added code to fire a bullet when you hit the up key.

As you'll see from the demo doing all this in the area of a single screen is getting a little silly. In the next chapter, you'll look at how to create a larger world in which your actors can play.

    Table of ContentsThe EnemyChapter 11.            The World