- Learning Cocos2d-x Game Development
- Siddharth Shekar
- 272字
- 2021-08-05 18:00:21
Summary
In this chapter, we learned how to install Visual Studio and the Windows Phone SDK. We downloaded Cocos2d-x 2.2.3 and created a new multiplatform project. We opened the project in Visual Studio 2012 and ran the project on the simulator.
We went through each of the projects in the Solution Explorer pane and understood what each of the projects do. We understood the fundamentals of the coordinate system and the basic classes in Cocos2d-x that are used to make any kind of game.
We then dug deeper to understand the different classes such as AppDelegate
and HelloWorldScene
, which are responsible for running the game. We also had a closer look at the individual functions and variables that are used to create, position, and display the objects on the screen.
If you wish, you can play around with the sprites by changing the position, rotation, and scale of the sprites to practice what you have learned so far. If you wish to know more about a class or a function, you can always press F12 and it will take you to the source file so that you can study it to get a deeper understanding of the implementation of the class. Don't be afraid to experiment. If you did something and don't know how to get back, you can always delete the wp8Game
folder in the project and create a new project. Use this time to become familiar with Cocos2d-x and Visual Studio.
In the next chapter, we will start creating a game in which we will add the hero on the screen and make him move around using different control mechanics.
- Android NDK Game Development Cookbook
- Deep Learning with PyTorch
- BeagleBone By Example
- 施耐德SoMachine控制器應(yīng)用及編程指南
- 深入淺出SSD:固態(tài)存儲(chǔ)核心技術(shù)、原理與實(shí)戰(zhàn)(第2版)
- 計(jì)算機(jī)組裝與維修技術(shù)
- 嵌入式系統(tǒng)中的模擬電路設(shè)計(jì)
- OUYA Game Development by Example
- 計(jì)算機(jī)組裝維修與外設(shè)配置(高等職業(yè)院校教改示范教材·計(jì)算機(jī)系列)
- Spring Cloud微服務(wù)和分布式系統(tǒng)實(shí)踐
- Istio服務(wù)網(wǎng)格技術(shù)解析與實(shí)踐
- 單片機(jī)技術(shù)及應(yīng)用
- 筆記本電腦芯片級維修從入門到精通(圖解版)
- 3D Printing Blueprints
- USB應(yīng)用開發(fā)寶典