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

Compartir libro
  1. 372 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

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

Michelle M. Fernandez

Detalles del libro
Vista previa del libro
Índice
Citas

Información del 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.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Corona SDK Mobile Game Development: Beginner's Guide - Second Edition un PDF/ePUB en línea?
Sí, puedes acceder a Corona SDK Mobile Game Development: Beginner's Guide - Second Edition de Michelle M. Fernandez en formato PDF o ePUB, así como a otros libros populares de Ciencia de la computación y Programación de juegos. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
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...

Índice