- 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:

推薦閱讀
- Boost.Asio C++ Network Programming(Second Edition)
- Git Version Control Cookbook
- Learning Chef
- Vue.js 2 and Bootstrap 4 Web Development
- AngularJS Web Application Development Blueprints
- Internet of Things with Intel Galileo
- Visual C++應用開發
- RSpec Essentials
- INSTANT Sinatra Starter
- Python項目實戰從入門到精通
- Advanced UFT 12 for Test Engineers Cookbook
- Java Web開發實例大全(基礎卷) (軟件工程師開發大系)
- AutoCAD基礎教程
- Jakarta EE Cookbook
- Swift Essentials(Second Edition)