Chapter    8

Adding New Levels

At this point in the book, you have created a functional arcade game. Prison Break can be used as a template for many other games, and the knowledge that you built in this short case study will help you create compelling arcade-style games.

As it stands, however, Prison Break is a rather short game. This chapter takes you through the theory of adding levels to the game. There are two ways you can add new levels to Prison Break—and most arcade games for that matter. You can hardcode each level into the game (static leveling); or you can write the game code in such a way that it reads the level information from an outside, changing source (dynamic leveling).

Let’s first take a look at the theory behind adding static ...

Get Android Arcade Game App: A Real World Project - Case Study Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.