更新时间:2021-07-23 19:37:54
coverpage
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
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Time for action – heading
Conventions
Reader feedback
Customer support
Chapter 1. Getting Started with Corona SDK
Downloading and installing Corona
Time for action – setting up and activating Corona on Mac OS X
Time for action – setting up and activating Corona on Windows
Using the simulator on Mac and Windows
Time for action – viewing a sample project in the simulator
Choosing a text editor
Developing on devices
Time for action – downloading and installing Xcode
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
Testing our application on an iOS device
Time for action – obtaining the iOS developer certificate
Time for action – adding/registering your iOS device
Time for action – creating an App ID
Time for action – creating a provisioning profile
Creating the Hello World build for iOS
Time for action – creating an iOS build
Time for action – loading an app on your iOS device
Testing our application on an Android device
Creating the Hello World build for Android
Time for action – creating an Android build
Time for action – loading an app on your Android device
Summary
Chapter 2. Lua Crash Course and the Corona Framework
Lua to the rescue
Valuable variables
Assignment conventions
Types of values
Time for action – printing values using blocks
Expressions
Strings
Time for action – getting our hands full of strings
Tables
Objects
Images
Time for action – placing images on screen
Runtime configuration
Time for action – scaling display objects on multiple devices
Dynamic resolution images
What are functions?
Optimize your workflow
Optimize your display images
Chapter 3. Building Our First Game – Breakout
Breakout – bringing back old-school gaming
Understanding the Corona physics API
Configuring the application
Time for action – adding the build.settings file
Time for action – adding the config.lua file
Building the application
Time for action – creating variables for the game
Understanding events and listeners
Transitions
Creating menu screens
Time for action – adding the main menu screen
Creating the game play scene
Time for action – adding game objects
Time for action – building bricks
Red alert!
Time for action – displaying game messages
Chapter 4. Game Controls
Moving in the up direction
Let's get even more physical
Time for action – starting physics for the paddle and ball
Paddle movement
Time for action – dragging the paddle in the simulator
Time for action – moving the paddle with the accelerometer
Ball collision with the paddle
Time for action – making the ball bounce against the paddle
Removing objects from the scene
Brick by brick
Time for action – removing the bricks
Directional changes
Time for action – updating the ball
Transitioning levels
Time for action – resetting and changing levels
You win some you lose some
Time for action –making win and lose conditions
Activating event listeners
Time for action – adding game listeners
The results are in!