- Cocos2d-x Game Development Blueprints
- Karan Sequeira
- 150字
- 2021-07-16 13:47:56
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:

推薦閱讀
- Visual C++串口通信開發入門與編程實踐
- Kubernetes實戰
- 自己動手實現Lua:虛擬機、編譯器和標準庫
- Java EE框架整合開發入門到實戰:Spring+Spring MVC+MyBatis(微課版)
- Java Web開發之道
- PHP 7+MySQL 8動態網站開發從入門到精通(視頻教學版)
- NetBeans IDE 8 Cookbook
- Mastering Unity 2D Game Development(Second Edition)
- Visual Foxpro 9.0數據庫程序設計教程
- C語言程序設計
- Application Development with Swift
- Android Studio開發實戰:從零基礎到App上線 (移動開發叢書)
- Clojure High Performance Programming(Second Edition)
- Scratch編程從入門到精通
- Mapping with ArcGIS Pro