Constimport { RPGM_FLOOR_AUTOTILE_TABLE, RPGM_WALL_AUTOTILE_TABLE } from '@datamoc/mwg/two-d/render';
console.log(RPGM_FLOOR_AUTOTILE_TABLE.length); // 48 - one entry per baked shape
console.log(RPGM_WALL_AUTOTILE_TABLE.length); // 16 - walls cycle every 16 shapes
console.log(RPGM_FLOOR_AUTOTILE_TABLE[47]); // [[0,0],[1,0],[0,1],[1,1]] - the full tile
The standard MV floor-autotile shape table (48 shapes), for slots 0-1: which four atlas quadrants each baked shape assembles, in 24px source cells. Entries are
[x, y]offsets, row-major[topLeft, topRight, bottomLeft, bottomRight], exactly the shape numbering MV bakes into map tile ids (shape = (tile - base) % 48).Functional interop data, the same category as
BLOB_SHAPES: every game reading MV maps needs these numbers, so they live here once rather than pasted into every port.