O'Reilly logo

Cocos2d for iPhone 0.99 Beginner's Guide by Pablo Ruiz

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

Time for action - creating your first map

So, continuing with our game, one thing it is missing is the background. Until now we have left a black screen behind, which looks awful, and we are going to fix that now. The idea here is to build a big map which we can scroll later to give the sense of motion.

In order to be able to build a map with Tiled, what we need first is the tileset, that is, the image which contains all the small tiles that will be used in the editor to build the whole map. This tileset uses the same concept as spritesheets; what we need is a huge image with the small images inside.

I have already included the tileset with all the tiles we'll use in this chapter. However, you are free to use your own. The only thing you have to ...

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