Book Image

Learning iPhone Game Development with Cocos2D 3.0

By : Kirill Muzykov
Book Image

Learning iPhone Game Development with Cocos2D 3.0

By: Kirill Muzykov

Overview of this book

Table of Contents (19 chapters)
Learning iPhone Game Development with Cocos2D 3.0
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating tile maps


When we use tile maps, we create a large world using a set of reusable small tiles. A set of such tiles is called a tileset. Here is a tileset that we are going to create and use in our new level:

Here is a part of the level created using the tiles from this tileset:

As you have probably guessed, each tile from the set is placed on a grid that forms a tile map. The tile map can be very big, while still not consuming all of your memory since only the visible part is displayed.

Creating a tile map usually takes two steps. First, you create a tileset image and then you arrange tiles to form a tile map. Let's start by creating a tileset.