CHAPTER 6

image

Autotiles

Ivan Popelyshev, Game Developer, bombermine.com

Tile-based maps are the easiest way to construct dynamic worlds for 2D games. Such maps are described by a grid, where each cell belongs to one possible type. Most map formats allow the concept of layers in their rendering engine. A single cell can have multiple graphics that render to the same location of the map. In this chapter, I will discuss and solve the following common problems:

  • Visually, there are types of tiles that quickly become redundant and an eyesore. An entire screen painted with the same grass tile quickly becomes boring. Artists often have to produce additional ...

Get HTML5 Game Development Insights 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.