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

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:

主站蜘蛛池模板: 泸西县| 上犹县| 宁河县| 伊川县| 扎兰屯市| 蒲城县| 沾化县| 迁安市| 陇西县| 兴安盟| 永平县| 彝良县| 怀集县| 彭州市| 深泽县| 盐城市| 罗山县| 海晏县| 成安县| 黑龙江省| 昆明市| 柯坪县| 乌拉特前旗| 巴里| 丘北县| 丹东市| 兴义市| 平果县| 修武县| 安溪县| 大宁县| 波密县| 德格县| 青州市| 阿拉善右旗| 石泉县| 梅州市| 额济纳旗| 曲松县| 扬州市| 湛江市|