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

Condividi libro
  1. 372 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

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

Michelle M. Fernandez

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

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.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Corona SDK Mobile Game Development: Beginner's Guide - Second Edition è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Corona SDK Mobile Game Development: Beginner's Guide - Second Edition di Michelle M. Fernandez in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Ciencia de la computación e Programación de juegos. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

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

Indice dei contenuti