- Learning Cocos2d-x Game Development
- Siddharth Shekar
- 170字
- 2021-08-05 18:00:22
Chapter 2. Displaying the Hero and Controls
In the previous chapter, we saw the inside workings of Cocos2d-x, where we saw which projects and libraries were included. We also looked at the project and folder structure of a single project and dug deeper into understanding the classes that act as the basic building blocks for creating any game.
From this chapter, we will look at how to take those building blocks and make a functional game out of it.
In this chapter, we will see how to display objects, such as the background image and player, and position them on the screen. Once the player is on the screen, the next thing we will do is make her move around. We will look at different ways that the hero can be controlled in.
The things you will learn in this chapter are the following:
- How to display the background image
- How to display the hero
- How to move the hero using the following:
- Actions
- Accelerometer
- Touches
- Custom controls
推薦閱讀
- Istio入門與實戰
- Augmented Reality with Kinect
- 電腦維護與故障排除傻瓜書(Windows 10適用)
- Unity 5.x Game Development Blueprints
- 電腦軟硬件維修從入門到精通
- Apple Motion 5 Cookbook
- 計算機組裝與維護(第3版)
- 面向對象分析與設計(第3版)(修訂版)
- Spring Cloud微服務和分布式系統實踐
- 無蘋果不生活:OS X Mountain Lion 隨身寶典
- 嵌入式系統原理及應用:基于ARM Cortex-M4體系結構
- 筆記本電腦現場維修實錄
- 多媒體應用技術(第2版)
- Learning Microsoft Cognitive Services
- The Deep Learning Workshop