Add a Dungeon Tile Map

You just finished creating a single tile with multiple variations. Now it’s time to up your game a bit by creating a tile group that uses adjacency rules for placement. With adjacency rules, you can create a map that looks a little more natural and less boxy using an 8-way adjacency group:

images/ExtendingYourGameWorldWithTileMaps/scene-editor-dungeon-tile-group-overview.png

But before you can create this new group, you need to add some more assets.

Adding the Dungeon Tile Assets

In the Project Navigator, select the Assets.xcassets asset catalog. Once there, create a new sprite atlas and name it tiles_dungeon. Don’t forget to delete the default Sprite image set.

Open Finder and drag all of the image resources ...

Get Apple Game Frameworks and Technologies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.