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

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!

主站蜘蛛池模板: 富顺县| 改则县| 静海县| 镇雄县| 准格尔旗| 黄浦区| 临西县| 沈丘县| 滦南县| 庄河市| 抚远县| 枣庄市| 无为县| 特克斯县| 邹平县| 常德市| 乌审旗| 大关县| 通化市| 社会| 江口县| 会宁县| 尼勒克县| 福泉市| 福清市| 同仁县| 德兴市| 华池县| 东台市| 茶陵县| 军事| 克东县| 周口市| 山丹县| 阜康市| 乌拉特中旗| 荣成市| 定边县| 呼和浩特市| 平原县| 托里县|