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

Time for action – creating a tile map


One of the best applications to create a tile map is a free app called Tiled created by Thorbjørn Lindeijer. We are going to use the app to create a simple level using the tileset that we have just created. Perform the following steps:

  1. Open the http://www.mapeditor.org/ website and download the Tiled application. You will need Tiled for OS X. When the download completes, open the .dmg file and copy the Tiled.app into the Applications folder on your Mac.

  2. Run the Tiled.app and create a new project by selecting the New option in the File menu. Set the new project options as follows:

    • Orientation: Select Orthogonal

    • Layer format: Select Base64 (zlib compressed)

    • Tile size: Set both Width and Height to 32 px

    • Map size: Set Width to 64 tiles and Height to 10 tiles

    The resulting Map Size should be 2048 x 320 pixels.

  3. Select the New Tileset option from the Map menu. Name the tileset anyway you like, as it is irrelevant (I have named it Jungle). Click on the Browse...