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

Chapter 2. How to Fly a Dragon!

This is the story of a dragon trapped inside a castle. You might ask why would a mighty creature like a dragon be trapped inside a castle. Well, obviously because he has deformed wings that are too small to carry his weight! It's our duty to help this poor creature out of this horrendous castle! We will continue using Cocos2d-html5 to create this charming game about a dragon trying to escape the bounds of the castle, with the player tapping to help the dragon fly. We'll call this game DragonDash.

In this chapter, you'll learn:

  • How to load a sprite sheet
  • How to create and use a cc.Animation
  • How to implement simple gravity and rectangular collision detection
  • How to play HTML5 audio and persistently store data in the browser

This is what we will achieve by the end of this chapter:

主站蜘蛛池模板: 菏泽市| 盐亭县| 文昌市| 廉江市| 中山市| 长子县| 达孜县| 鹰潭市| 博乐市| 炎陵县| 杭锦旗| 尼木县| 南城县| 大厂| 凭祥市| 朝阳市| 开封市| 沐川县| 同仁县| 北京市| 黄骅市| 宜黄县| 辽阳县| 宜丰县| 中卫市| 大连市| 克拉玛依市| 宣威市| 比如县| 雷波县| 耒阳市| 遂昌县| 来安县| 藁城市| 沧州市| 青川县| 双辽市| 客服| 黑水县| 吴堡县| 株洲县|