更新时间:2021-08-06 20:00:24
coverpage
Corona SDK Mobile Game Development
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
Conventions
Time for action – heading
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 your 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
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
Time for some shapes
Functions
Optimizing your workflow
Chapter 3. Building our First Game: Breakout
Breakout—bringing back old-school gaming
Understanding Corona physics API
Configuring the application
Time for action – adding build.settings file
Time for action – adding 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 gameplay 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 accelerometer
Ball collision with 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!
Chapter 5. Animating our Game
Panda star catcher