Summary

In this chapter, you built a complete Snake prototype without using any array. This different approach to the creation of a tile-based game allowed you to use points and get the DisplayObjects under a point. Also, you learned how to determine the distance between two points using Manhattan distance. It will come in handy when you have to deal with distances in a tile-based game.

Get Flash Game Development by Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.