Corona SDK Mobile Game Development: Beginner's Guide - Second Edition
eBook - ePub

Corona SDK Mobile Game Development: Beginner's Guide - Second Edition

Michelle M. Fernandez

Share book
  1. 372 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Corona SDK Mobile Game Development: Beginner's Guide - Second Edition

Michelle M. Fernandez

Book details
Book preview
Table of contents
Citations

About This Book

About This Book

  • From game physics to successful marketing, learn the fundamentals of Corona SDK for game development
  • Integrate your games with social networks such as Twitter and Facebook
  • This is a pragmatic guide explained in a step-by-step manner to create and deploy games quickly and efficiently

Who This Book Is For

This book is for anyone who wants to have a go at creating commercially successfully games for Android and iOS. You don't need game development or programming experience.

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Corona SDK Mobile Game Development: Beginner's Guide - Second Edition an online PDF/ePUB?
Yes, you can access Corona SDK Mobile Game Development: Beginner's Guide - Second Edition by Michelle M. Fernandez in PDF and/or ePUB format, as well as other popular books in Informatica & Programmazione di giochi. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781783559350

Corona SDK Mobile Game Development Beginner's Guide Second Edition


Table of Contents

Corona SDK Mobile Game Development Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Time for action – heading
What just happened?
Pop quiz – heading
Have a go hero – heading
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started with Corona SDK
Downloading and installing Corona
Time for action – setting up and activating Corona on Mac OS X
What just happened?
Time for action – setting up and activating Corona on Windows
What just happened?
Using the simulator on Mac and Windows
Time for action – viewing a sample project in the simulator
What just happened?
Have a go hero – use a different device shell
Choosing a text editor
Developing on devices
Time for action – downloading and installing Xcode
What just happened?
Time for action – creating a Hello World application in two lines of code
Time for action – modifying our application
Time for action – applying a new font name to our application
What just happened?
Have a go hero – adding more text objects
Testing our application on an iOS device
Time for action – obtaining the iOS developer certificate
What just happened?
Adding iOS devices
Xcode
iTunes
Time for action – adding/registering your iOS device
Time for action – creating an App ID
What just happened?
Provisioning profiles
Time for action – creating a provisioning profile
What just happened?
Application icon
Creating the Hello World build for iOS
Time for action – creating an iOS build
What just happened?
Time for action – loading an app on your iOS device
What just happened?
Testing our application on an Android device
Creating the Hello World build for Android
Time for action – creating an Android build
What just happened?
Time for action – loading an app on your Android device
What just happened?
Pop quiz – understanding Corona
Summary
2. Lua Crash Course and the Corona Framework
Lua to the rescue
Valuable variables
Global variables
Local variables
Table fields (properties)
Assignment conventions
Types of values
Time for action – printing values using blocks
What just happened?
Expressions
Arithmetic operators
Relational operators
Logical operators
Concatenation
The length operator
Precedence
Strings
Quoting strings
Time for action – getting our hands full of strings
What just happened?
Have a go hero – pulling some more strings
Tables
Passing a table as an array
Altering contents in a table
Populating a table
Objects
Display objects
Display properties
Object methods
Images
Loading an image
Image autoscaling
Time for action – placing images on screen
What just happened?
Have a go hero – adjusting display object properties
Runtime configuration
Dynamic content scaling
Dynamic content alignment
Dynamic image resolution
Frame rate control
Time for action – scaling display objects on multiple devices
What just happened?
Dynamic resolution images
Time for some shapes
Applying stroke width, fill color, and stroke color
Text, text, text
Applying color and string value
What are functions?
Defining a function
More display functions
Content size properties
Optimize your workflow
Use memory efficiently
Optimize your display images
Pop quiz – basics of Lua
Summary
3. Building Our First Game – Breakout
Breakout – bringing back old-school gaming
Understanding the Corona physics API
Setting up the physics world
Starting, pausing, and stopping the physics engine
physics.setGravity
physics.getGravity
Tilt-based gravity
physics.setScale
physics.setDrawMode
physics.setPositionIterations
physics.setVelocityIterations
Configuring the application
Build configuration
Time for action – adding the build.settings file
What just happened?
Dynamic scaling
Time for action – adding the config.lua file
What just happened?
Building the application
Displaying groups
display.newGroup()
Working with system functions
system.getInfo()
system.setAccelerometerInterval()
Time for action – creating variables for the game
What just happened?
Understanding events and listeners
Register events
Runtime events
enterFrame
Accelerometer
Touch events
Touch (single touch)
tap
Transitions
Creating menu screens
Time for action – adding the main menu screen
What just happened?
Have a go hero – creating a help screen
Creating the game play scene
Time for action – adding game objects
What just happened?
Time for action – building bricks
What just happened?
Have a go hero – focused platform gaming
Red alert!
Time for action – displaying game messages
What just happened?
Pop quiz – building a game
Summary
4. Game Controls
Moving in the up direction
Let's get even more physical
physics.addBody()
Time for action – starting physics for the paddle and ball
What just happened?
Paddle movement
Time for action – dragging the paddle in the simulator
What just happened?
Time for action – moving the pad...

Table of contents