- 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.
推薦閱讀
- Reporting with Visual Studio and Crystal Reports
- Computer Vision for the Web
- C/C++算法從菜鳥到達人
- Scala Design Patterns
- Instant Typeahead.js
- 小程序,巧運營:微信小程序運營招式大全
- 零基礎學單片機C語言程序設計
- Learning Laravel's Eloquent
- 深入分布式緩存:從原理到實踐
- ASP.NET開發與應用教程
- Building Slack Bots
- Learning Unreal Engine Game Development
- Spring Data JPA從入門到精通
- 零基礎PHP從入門到精通
- Python Django Web從入門到項目實戰(視頻版)