Game development

Tiled chunk bounds

Find the tile-space bounds of an infinite map’s chunks.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Take the minimum chunk origins and the maximum exclusive ends. Width and height are the differences between those bounds.

The example spans x = −16 to 32 and y = −16 to 16: 48×32 tiles.

Limits

Bounds describe allocated chunks, including empty cells. Overlapping chunks are counted separately in the allocated-cell total.