O'Reilly logo

Cocos2D Game Development Essentials by Ben Trengrove

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Nodes, Sprites, and Scenes

In the last chapter, you went through the introduction of Cocos2d template. You had a look at your first nodes, and sprites, and learned how to move between scenes. In this chapter, you will get into more detail on how these elements work and what can be done with them. You will also create your first mini game to begin with, to see how the pieces all come together.

In this chapter, you will learn:

  • How to build blocks of Cocos2d nodes
  • How to display images on the screen
  • How to layout your scene
  • How to change between different scenes

The building blocks, nodes

In Cocos2d, everything you see on screen is a subclass of the CCNode class. Even the scenes your game has are subclasses of the CCNode class.

There are some ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required