Name: zaloa
Owner: Tilezen
Description: Merges terrain tiles together from 256 to 512 and buffered sizes
Created: 2017-04-18 20:37:03.0
Updated: 2018-05-11 12:08:35.0
Pushed: 2018-03-20 22:56:14.0
Size: 51
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Zaloa takes input terrain tiles, and merges them together.
It is designed to be run as middleware to dynamically generate alternate tile sizes from 256px sources.
Zaloa uses two tilesets as its source:
Supports 512, and buffered variants of 256, namely 260 and 516. The variants have a 2 pixel buffer on each edge.
The larger tiles are generated by sourcing the relevant neighbors from the 256px sources.
In the diagrams below, o
is the source tile, and the x
s represent the neighbors used.
x
x
x
x x
o x
o x
x x
When on the “edge”, there isn't a neighboring tile to source. Zaloa's behavior is:
eg: The left neighbor of 2/0/2 will be 2/3/2
eg: The top neighbor of 2/2/0 is 2/2/0 itself, ie the top 2 rows of pixels are re-used as the buffer.