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

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.

主站蜘蛛池模板: 新丰县| 定结县| 永仁县| 聂荣县| 石河子市| 航空| 江口县| 龙泉市| 久治县| 湖南省| 呼玛县| 昭通市| 高平市| 衢州市| 九台市| 乌拉特前旗| 临高县| 长子县| 宿迁市| 渑池县| 南木林县| 桦南县| 平乡县| 黎城县| 南通市| 监利县| 皋兰县| 梨树县| 沙湾县| 桂林市| 贡觉县| 阿合奇县| 墨脱县| 贞丰县| 固始县| 丽水市| SHOW| 深圳市| 集安市| 中宁县| 博兴县|