官术网_书友最值得收藏!

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!

主站蜘蛛池模板: 镇原县| 乌海市| 韶关市| 南溪县| 平潭县| 辽阳县| 黄平县| 鹰潭市| 连平县| 富阳市| 大理市| 永丰县| 出国| 读书| 逊克县| 佛坪县| 启东市| 潜江市| 沁水县| 江安县| 普定县| 长子县| 南安市| 偏关县| 黄浦区| 大城县| 平阳县| 徐汇区| 巴里| 曲周县| 永修县| 石门县| 浠水县| 青州市| 明光市| 通州市| 关岭| 太原市| 蕉岭县| 华安县| 庄浪县|