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

推薦閱讀
- Java FX應(yīng)用開發(fā)教程
- MySQL數(shù)據(jù)庫管理與開發(fā)(慕課版)
- ASP.NET求職寶典
- Python高性能編程(第2版)
- SFML Essentials
- Java王者歸來:從入門邁向高手
- R語言編程:基于tidyverse
- 構(gòu)建跨平臺(tái)APP:響應(yīng)式UI設(shè)計(jì)入門
- AngularJS Directives Cookbook
- Application Testing with Capybara
- Mastering .NET Machine Learning
- 輕松玩轉(zhuǎn)Scratch 3.0編程(第2版)
- 區(qū)塊鏈智能合約安全入門
- Web 3中的零知識(shí)證明
- HTML5+CSS3+JavaScript Web前端開發(fā)案例教程(慕課版)