上QQ阅读APP看书,第一时间看更新
Chapter 1. Hello World – A Cross-platform Game
The legend says that the first working script you should do when learning a new language is the classic Hello World printed somewhere on the screen.
This chapter will guide you through the creation of a cross-platform Hello World example, covering these concepts:
- The theory behind the creation of cross platform games
- Cocos2d-JS installation and setup
- A Cocos2d-JS project blueprint
- Scenes, Layers, and Sprites
- Preloading images
- Adding images
- Removing images
By the end of the chapter, you will be able to create a template project to create any kind of Cocos2d-JS cross-platform game that is capable of running on various devices at different resolutions.