Modern, lightweight and efficient 2D level editor
MIT License
Published by deepnight about 4 years ago
Tiled (TMX) export option: from the project settings (F1
), check the Tiled export option to save Tiled compatible files along with the LEd JSON.
DISCLAIMER: this export is limited because Tiled doesn't support some core features from LEd, like different grid sizes in the same level or Array of properties in Entities. This export is only meant as a short-term solution to quickly load LEd data in a framework only supporting TMX files. See documentation for more informations.
Better active/inactive visual state for rules and groups of rules in auto-layers
Inactive rules are no longer exported in the JSON file
Pressing F
key twice fits the current level in view but with less padding
Added an automated JSON format documentation generator (see JSON_DOC.md in sources)
Added version badges in the JSON doc to quickly identify changes per versions.
Updated home page
Updated sample
maps
__cx
/__cy
to layerInstance.autoTiles.results
Published by deepnight about 4 years ago
random
function giving identical results for different rulesSamples
BREAKING CHANGE: some cleanup & renaming happened on this update, please check changes below.
__tileX
/ __tileY
were renamed to __srcX
/ __srcY
in layerInstances.gridTiles
. These values are pixel coordinates of the tile in the tileset atlas image.__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):
tiles
to results
.tileId
from layerInstances.autoTiles
with an array called tiles
.__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._x
and _y
which are pre-computed pixel coordinates of tile on screenBefore, 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
} ]
}
]
Published by deepnight about 4 years ago
F1
-F6
key shortcuts for all editor panels__tileX
/ __tileY
to layerInstances.autoTiles
__tileX
/ __tileY
to layerInstances.gridTiles
v
to tileId
in layerInstances.gridTiles
tileSpacing
-> spacing
in tilesets
definitionspadding
to tilesets
definitionsPublished by deepnight about 4 years ago
Samples
for some examples.A
to toggle)TAB
)CTRL+SHIFT+S
)Samples
Published by deepnight about 4 years ago
Published by deepnight about 4 years ago
Published by deepnight about 4 years ago
Published by deepnight about 4 years ago
Published by deepnight about 4 years ago
Published by deepnight about 4 years ago