Book Image

Corona SDK Mobile Game Development: Beginner's Guide

By : Michelle M Fernandez
Book Image

Corona SDK Mobile Game Development: Beginner's Guide

By: Michelle M Fernandez

Overview of this book

Table of Contents (19 chapters)
Corona SDK Mobile Game Development Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 3. Building Our First Game – Breakout

So far, we have gone through some important basics of programming in Lua and applied some code to run in the Corona simulator. Knowing the terminology is a small part of learning how to create an application. We'll need to take a step further and get some hands-on experience of what it's like to structure a project from start to finish. We're going to accomplish this by creating our first game from scratch. This will push you further to understand larger chunks of code and apply some game logic to create a functional game.

By the end of this chapter, you will understand:

  • How to structure game files in a Corona project

  • How to create variables for the game

  • How to add game objects to the screen

  • How to create an alert message

  • How to display the score and level number

Let the fun begin!