上QQ阅读APP看书,第一时间看更新
Chapter 3. Building our First Game: Breakout
Up until now, we have gone through some important basics of programming in Lua and applying some code to run in the Corona simulator. Knowing the terminology is a small part of learning how to make an application. We'll need to take a step further and get some hands on experience on what it's like to structure a project from beginning to finish. We're going to accomplish this by creating our first game from scratch. This will push you further into understanding larger chunks of code and applying some game logic to make a functional game.
By the end of this chapter, you will understand the following:
- Structuring game files in a Corona project
- Creating variables for the game
- Adding game objects to the screen
- Making an alert message
- Displaying score and level number
Let the fun begin!