官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 霸州市| 巍山| 共和县| 华池县| 兴国县| 含山县| 鹤峰县| 平昌县| 南投市| 杭锦后旗| 六安市| 崇仁县| 宁阳县| 洛阳市| 绵阳市| 临潭县| 高清| 藁城市| 朝阳区| 阿荣旗| 安化县| 青州市| 亳州市| 阿鲁科尔沁旗| 阿坝县| 纳雍县| 上犹县| 巍山| 青神县| 阳新县| 会昌县| 深州市| 潞西市| 恩施市| 泊头市| 进贤县| 宣恩县| 神木县| 吉安市| 隆回县| 楚雄市|