O'Reilly logo

Learn Lua for iOS Game Development by Jayant Varma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required