- Added
__cx
/__cy
tolayerInstance.autoTiles.results
BREAKING CHANGE: some cleanup & renaming happened on this update, please check changes below.
__tileX
/__tileY
were renamed to__srcX
/__srcY
inlayerInstances.gridTiles
. These values are pixel coordinates of the tile in the tileset atlas image.- added
__x
/__y
values, which are pixel display coordinates of each tile.
To support new rule-based group of tiles (eg. "placing a big object using just rules"), some changes were introduced to the layerInstances.autoLayers
structure (see example below):
- Renamed
tiles
toresults
. - Replaced
tileId
fromlayerInstances.autoTiles
with an array calledtiles
. - Renamed
__tileX
and__tileY
in these sections with hopefully clearer names__srcX
and__srcY
. These are still X/Y pixel coordinates of corresponding tiles in the tileset image. - Added
_x
and_y
which are pre-computed pixel coordinates of tile on screen - Please refer to updated doc for more infos: https://deepnight.net/docs/led/json/
Before, in layerInstances:
"autoTiles": [
{
"ruleId": 101,
"tiles": [ {
"coordId": 90,
"tileId": 169,
"__tileX": 32,
"__tileY": 128,
"flips": 0
} ]
}
]
Now:
"autoTiles": [
{
"ruleId": 101,
"results": [ { // <--- Renamed!
"coordId": 90,
"tiles": [ // <---- Now an array!
{ "tileId": 169, "__x": 64, "__y": 8, "__srcX": 8, "__srcY": 112 },
{ "tileId": 181, "__x": 64, "__y": 16, "__srcX": 8, "__srcY": 120 }
],
"flips": 0
} ]
}
]
- Added
__tileX
/__tileY
tolayerInstances.autoTiles
- Added
__tileX
/__tileY
tolayerInstances.gridTiles
- Renamed
v
totileId
inlayerInstances.gridTiles
- Renamed
tileSpacing
->spacing
intilesets
definitions - Added
padding
totilesets
definitions
Initial beta release