- 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
推薦閱讀
- 新媒體跨界交互設計
- Aftershot Pro:Non-destructive photo editing and management
- 施耐德SoMachine控制器應用及編程指南
- 硬件產品經理成長手記(全彩)
- 電腦組裝、維護、維修全能一本通(全彩版)
- Learning Stencyl 3.x Game Development Beginner's Guide
- 分布式微服務架構:原理與實戰
- Practical Machine Learning with R
- 筆記本電腦使用、維護與故障排除從入門到精通(第5版)
- 龍芯自主可信計算及應用
- 單片機技術及應用
- Spring Security 3.x Cookbook
- Blender for Video Production Quick Start Guide
- The Applied Artificial Intelligence Workshop
- 電腦主板維修技術