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 TilemapScene


Let's start by creating the new scene and loading our tile map. Perform the following steps:

  1. Open the Cocohunt project and create new group in the Resources group called Tilemap.

    Note

    You can continue working on the project you have after completing the previous chapter or take the final code from the previous chapter in the book's supporting files and use it as a starter project. You can find the final code for the previous chapter in the Chapter_10/Cocohunt_10_Final folder.

  2. Add the tilemap.png, tilemap.tmx, tilemap-hd.png, and tilemap-hd.tmx files to that group. You can use the files that you created or take the files from the Chapter_11/Assets/Tilemap/Result folder.

  3. In addition to the tile map files, add two background image files from the Chapter_11/Assets/Background folder. We will use them as the background image for the scene.

  4. After adding all resources, create a new scene called TilemapScene.

  5. Open the TilemapScene.m file and import the cocos2d.h file...