Use the Tile Map Editor

Apple Game Frameworks and Technologies — by Tammy Coron (98 / 193)

The Pragmatic Programmers
The Pragmatic Programmers

--

👈 Create a Tile Map Node | TOC | Add a Dungeon Tile Map 👉

In the Scene Graph, right-click the Grass Tile Map and select the Edit Tile Map from the context menu; this action takes you into the Tile Map Editor, which looks like this:

images/ExtendingYourGameWorldWithTileMaps/scene-editor-tile-map-node-editor.png

The Tile Map Editor is a powerful tool for painting your tiles onto a tile map node. With this editor, you have the option of automatically filling the map node with tiles from its corresponding tile set or individually selecting and painting tiles from the set.

Before you get into the nitty-gritty of painting tiles, let’s quickly go over the toolbar.

If you’ve ever used a drawing and painting application, you’re likely familiar with how most of these tools work. In order from left to right, you have the tools as shown in the first image.

images/ExtendingYourGameWorldWithTileMaps/SceneEditor-Tool-table.png

Click the Randomize tool a few times and watch as random grass tiles are placed within the map. When you’re done, you’ll end up with a random painting of grass tiles that almost certainly looks different than the example as shown in the…

--

--

The Pragmatic Programmers
The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.