O'Reilly logo

Cocos2d-x Cookbook by Akihiro Matsuura

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

Using Tiled Map Editor

A tiled map is a grid of cells where the value in the cell indicates what should be at the location. For example, (0,0) is a road, (0,1) is a grass, (0,2) is a river and so on. Tiled maps are very useful but they are pretty hard to create by hand. Tiled is a tool that can be used to just create tiled maps. Tiled is a free application. However, this application is a very powerful, useful and popular tool. There are various kinds of Tiled Map, for example, 2D maps such as Dragon Quest, Horizontal scrolling game map such as Super Mario and so on. In this recipe, you can basically use texture packer.

Getting ready

If you don't have Tiled Map Editor, you can download it from https://www.mapeditor.org/.

And then, after downloading ...

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