We start the journey of game development in Cocos2d-x with a simple, fun, and colorful game. Let's call it ColourSmash. This will serve as a revision of the basic features of the engine and will get us started with some fun development. We will be using the HTML5 version of Cocos2d for this project—Cocos2d-html5-v2.2.3
to be specific. So all the coding in this chapter, and the next, will be done in JavaScript.
Here's what you'll learn in this chapter:
How and where to use
cc.Scene
andcc.Layer
How to optimize rendering with a batch node
How to use actions and easing
How to get touches
How to schedule callbacks