Developing Mobile Games with Moai SDK

Learn the basics of Moai SDK through developing games

Developing Mobile Games with Moai SDK

Francisco Tufró

Learn the basics of Moai SDK through developing games
Mapt Subscription
FREE
$29.99/m after trial
eBook
$12.60
RRP $17.99
Save 29%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$12.60
$29.99
$29.99p/m after trial
RRP $17.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781782165064
Paperback136 pages

Book Description

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.

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.

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.

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.

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.

Table of Contents

Chapter 1: Why Moai SDK?
Multi-platform development
Why Moai SDK?
Summary
Chapter 2: Installing Moai SDK
Getting the latest stable build
Setting up the environment
Running samples
Summary
Chapter 3: Basic Moai SDK Concepts
The Moai SDK Runtime
Rendering
Moai Hosts
Lua and C++
Summary
Chapter 4: Our First Game with Moai
Concentration
Project setup
Opening a window
Summary
Chapter 5: Showing Images on the Screen
Introduction to Decks and Props
Our first image
Coordinate systems
Blend modes
Summary
Chapter 6: Resource Manager
Resource definitions
Resource manager
Exercises
Summary
Chapter 7: Concentration Gameplay
Grid
Input
Gameplay
Summary
Chapter 8: Let's Build a Platformer!
Background
Camera and scrolling
Main character
Summary
Chapter 9: Real-world Physics with Box2D
Creating the world
Box2D body types
Character versus the world
Movement
Keyboard input
Creating the scene
Exercises
Summary
Chapter 10: Creating a HUD
The basics
Left or right, that's the question
Updating information
Summary
Chapter 11: Let the Right Music In!
Audio manager
Background music
Sound effects
Summary
Chapter 12: iOS Deployment
Xcode project
Running an example
Setting up our own project
Going multi-platform
Running on the device
Summary
Chapter 13: Deployment to Other Platforms
Windows
Mac OS X
Android
Google Chrome (native client)
Linux
Summary

What You Will Learn

  • Display images and play sounds
  • Iterate on gameplay implementation using Lua
  • Group your code in modules to make it maintainable
  • Work with Grids to manage rendering and gameplay
  • Build a game with physics
  • Animate a character and make it move with the keyboard
  • Work with the camera and create some nice parallax effects
  • Save memory and loading time using caching
  • Deploy your game to iPhone and iPad

Authors

Table of Contents

Chapter 1: Why Moai SDK?
Multi-platform development
Why Moai SDK?
Summary
Chapter 2: Installing Moai SDK
Getting the latest stable build
Setting up the environment
Running samples
Summary
Chapter 3: Basic Moai SDK Concepts
The Moai SDK Runtime
Rendering
Moai Hosts
Lua and C++
Summary
Chapter 4: Our First Game with Moai
Concentration
Project setup
Opening a window
Summary
Chapter 5: Showing Images on the Screen
Introduction to Decks and Props
Our first image
Coordinate systems
Blend modes
Summary
Chapter 6: Resource Manager
Resource definitions
Resource manager
Exercises
Summary
Chapter 7: Concentration Gameplay
Grid
Input
Gameplay
Summary
Chapter 8: Let's Build a Platformer!
Background
Camera and scrolling
Main character
Summary
Chapter 9: Real-world Physics with Box2D
Creating the world
Box2D body types
Character versus the world
Movement
Keyboard input
Creating the scene
Exercises
Summary
Chapter 10: Creating a HUD
The basics
Left or right, that's the question
Updating information
Summary
Chapter 11: Let the Right Music In!
Audio manager
Background music
Sound effects
Summary
Chapter 12: iOS Deployment
Xcode project
Running an example
Setting up our own project
Going multi-platform
Running on the device
Summary
Chapter 13: Deployment to Other Platforms
Windows
Mac OS X
Android
Google Chrome (native client)
Linux
Summary

Book Details

ISBN 139781782165064
Paperback136 pages
Read More

Read More Reviews

Recommended for You

Cocos2d-X by Example Beginner's Guide Book Cover
Cocos2d-X by Example Beginner's Guide
$ 26.99
$ 18.90
Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Mobile Web Development Book Cover
Mobile Web Development
$ 26.99
$ 18.90
Corona SDK Mobile Game Development: Beginner's Guide Book Cover
Corona SDK Mobile Game Development: Beginner's Guide
$ 29.99
$ 21.00
Instant Adobe Edge Inspect Starter Book Cover
Instant Adobe Edge Inspect Starter
$ 12.99
$ 9.10
Creating Mobile Apps with jQuery Mobile Book Cover
Creating Mobile Apps with jQuery Mobile
$ 26.99
$ 18.90