Book Image

Developing Mobile Games with Moai SDK

By : Francisco Tufró
Book Image

Developing Mobile Games with Moai SDK

By: Francisco Tufró

Overview of this book

<p>Moai SDK is a fast, minimalist, open-source Lua mobile framework for pro game developers. Moai is built around Lua, a common programming language for games, and offers a single open-source platform for both the front-end elements seen by consumers and the back-end infrastructure.<br /><br />Developing Mobile Games with Moai SDK will guide you through the creation of two game prototypes in a step-by-step way, giving you the basic tools you need in order to create your own games.<br /><br />Developing Mobile Games with Moai SDK introduces the basic concepts behind game development, and takes you through the development of a tile-based memotest, and a platform game prototype as well. You'll end up with a good codebase to start writing your own games.</p> <p>You will learn some tricks that come from real life experience while creating a small framework that will allow you to display images, play sounds, grab input, and so on. You'll also learn how to implement physics using Box2D bindings, and everything in Lua, without having to use any compilations. After doing this, we'll take a look at how to deploy your game to iOS and run it on an iPhone.</p> <p><br />With this book, you should be ready to go and create your own game, release it to the Apple Store, and have enough tools to dig deeper into Moai SDK.</p>
Table of Contents (20 chapters)
Developing Mobile Games with Moai SDK
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
7
Concentration Gameplay
Index

Setting up our own project


Since the Xcode project sample that comes with Moai SDK includes a bunch of things that we may not need, it's recommended to do a clean up. We'll start by copying the whole project somewhere in our hard drive. If you have been following all the chapters and have extracted all the code, a good place to put our project is in the same folder as the code samples, so that we can point at them and have our Concentration game available on iOS. You can use the source code of Chapter 7, Concentration Gameplay.

Either way, if you downloaded the book's source code, you'll find the iOS project and the Concentration gameplay implementation in the code for this chapter.

Now that we have both the Xcode project and the Concentration game in place, double-click on moai.xcodeproj in order to open Xcode and start configuring it.

It may take a while to load. Xcode performs file indexing the first time you open a project. Don't worry, that won't happen on subsequent loads (well, except...