- Cocos2d-x by Example:Beginner's Guide(Second Edition)
- Roger Engelbert
- 137字
- 2021-07-23 20:00:26
Chapter 3. Your First Game – Air Hockey
We are going to build an Air Hockey game to introduce you to all the main aspects of building a project with Cocos2d-x. These include setting up the project's configuration, loading images, loading sounds, building a game for more than one screen resolution, and managing touch events.
Oh, and you will need to call a friend. This is a two player game. Go on, I'll wait here.
By the end of this chapter, you will know:
- How to build an iPad-only game
- How to enable multitouch
- How to support both retina and non-retina displays
- How to load images and sounds
- How to play sound effects
- How to create sprites
- How to extend the Cocos2d-x
Sprite
class - How to create labels and update them
Without further ado...let's begin.
推薦閱讀
- Visual FoxPro程序設計教程(第3版)
- JavaScript高效圖形編程
- 控糖控脂健康餐
- 編程卓越之道(卷3):軟件工程化
- Swift 3 New Features
- Full-Stack React Projects
- PLC應用技術(三菱FX2N系列)
- UI設計全書(全彩)
- Solutions Architect's Handbook
- 超簡單:用Python讓Excel飛起來(實戰(zhàn)150例)
- Joomla!Search Engine Optimization
- Ionic3與CodePush初探:支持跨平臺與熱更新的App開發(fā)技術
- Magento 2 Developer's Guide
- Expert Cube Development with SSAS Multidimensional Models
- Learning Perforce SCM