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

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.

主站蜘蛛池模板: 丹巴县| 宜春市| 萨嘎县| 聂荣县| 四子王旗| 富民县| 青海省| 内江市| 齐河县| 鄂托克旗| 静安区| 遂川县| 桃园县| 九寨沟县| 馆陶县| 邵东县| 蒲城县| 阿坝| 永顺县| 湛江市| 绥德县| 沾益县| 彰武县| 莱西市| 康平县| 尖扎县| 镇坪县| 社旗县| 铁力市| 吉木乃县| 临潭县| 长汀县| 肃北| 许昌县| 宝应县| 元阳县| 屏东县| 新民市| 钦州市| 乌拉特中旗| 兴和县|