loadAtlasDirs walks one level deep into each --atlas-dir, picks up */tiles.atlas.json, and builds bidirectional name/id maps. On duplicate atlas_id across paths the first registration wins and a warning string is returned (callers decide whether to print).
10 lines
193 B
JSON
10 lines
193 B
JSON
{
|
|
"atlas_id": "atlas_b",
|
|
"atlas_version": 1,
|
|
"atlas_size_px": [64, 32],
|
|
"tile_size_px": 32,
|
|
"tiles": [
|
|
{ "id": 1, "name": "water", "uv": [0, 0, 32, 32], "walkable": false }
|
|
]
|
|
}
|