Chapter 10Extending Your Game World with Tile Maps

With a game like Val’s Revenge, players need to have a lot of room to explore. Although it’s possible to build a gigantic scene using one, two, or even three or more background images, there’s a more efficient and scalable way to create scenes worthy of exploration: tile maps.

With tile maps, you can build large, elaborate scenes using a grid of predefined images, or tiles, such as what you see here:

images/ExtendingYourGameWorldWithTileMaps/scene-editor-tilemap.png

Whether you’re building a side-scrolling platformer game or a top-down adventure game, tile maps give you greater control and flexibility over the landscape while also using less resources.

In this ...

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.