Chapter     15

Sample Source Code

You have nearly come to the end of this book; I hope you have had a good read and learned a lot. In the first part of the book I introduced you to Lua and its functions, and in the second part I introduced you to the various Lua-based frameworks that you can use to develop for iOS devices. This chapter will provide the complete source code for an application called Chopper Rescue, which you can use as a base for creating your own games.

In Chopper Rescue, you are in control of a rescue chopper, with the goal of saving survivors. As your chopper moves, you’ll need to avoid various obstacles that can cause you to crash. When survivors appear, your job is to collect them. In certain situations, you’ll need to tap ...

Get Learn Lua for iOS Game Development 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.