Time for action – creating TilemapScene
Let's start by creating the new scene and loading our tile map. Perform the following steps:
- Open the Cocohunt project and create new group in the
Resources
group calledTilemap
.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. - Add the
tilemap.png
,tilemap.tmx
,tilemap-hd.png
, andtilemap-hd.tmx
files to that group. You can use the files that you created or take the files from theChapter_11/Assets/Tilemap/Result
folder. - 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. - After adding all resources, create a new scene called
TilemapScene
. - Open the
TilemapScene.m
file and import...