Game development
Tiled chunk bounds
Find the tile-space bounds of an infinite map’s chunks.
Your inputs
Start with an exampleYour result
Example resultAa — A small example of your colors.
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.