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

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:

主站蜘蛛池模板: 江陵县| 乌鲁木齐县| 河源市| 河南省| 萝北县| 永靖县| 孙吴县| 鄱阳县| 武陟县| 宾阳县| 金秀| 梁山县| 封开县| 晴隆县| 浮山县| 通州市| 东平县| 阳原县| 肇东市| 琼中| 安顺市| 淳化县| 新建县| 湖南省| 轮台县| 益阳市| 张家川| 沂水县| 集贤县| 玉田县| 云梦县| 楚雄市| 海兴县| 阳东县| 安陆市| 静安区| 武乡县| 南乐县| 通渭县| 香河县| 琼结县|