Prerequisites Chapter 4, "Basic Physics." The main character in this game runs, jumps, and slides. You need an understanding of velocity, "good-enough" gravity, and "good-enough" friction to fully understand the ActionScript in this game. Chapter 5, "Collision Detection." In this game the character can run and jump onto floating platforms, run into or jump onto enemies, and collect ice cubes. You need collision detection to perform these tasks. In reviewing Chapter 5, pay attention to the most simple collision-detection techniques, such as hitTest() and rectangle-rectangle, since those are the only ones used here. Chapter 11, "Graphics in Games." This chapter is important if you want to understand how the graphics for this game were created. However, it is not necessary for understanding the ActionScript. Appendix D, "XML Basics in Flash." For complete flexibility, each level in Ice World is stored as XML-formatted data in individual XML files. Knowing how the XML is formatted and parsed by the game is not crucial to understanding the game itself, but it is important for understanding how you can easily make dozens of levels for a game. |