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

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!

主站蜘蛛池模板: 温州市| 彰化县| 瑞金市| 安宁市| 古丈县| 东丰县| 正宁县| 仁布县| 辉县市| 丁青县| 扎鲁特旗| 蒲江县| 奈曼旗| 奉化市| 武陟县| 罗田县| 永德县| 唐山市| 淮滨县| 南澳县| 苍溪县| 普陀区| 湖南省| 浦县| 乐昌市| 吐鲁番市| 唐山市| 伊宁市| 天峻县| 襄垣县| 九龙城区| 宁河县| 赫章县| 肃南| 申扎县| 齐河县| 濮阳市| 岳普湖县| 通道| 洪江市| 册亨县|