github deepnight/ldtk v0.4.0-beta
0.4.0-beta

latest releases: v1.5.3, v1.5.2, v1.5.1...
3 years ago

0.4.0-beta

App changes

  • Experimental Ubuntu and MacOS versions (thanks to the community!)

  • Selections: you can now select any element in a level by using ALT + left click. You can move it around by holding left click. To select a rectangle area, use ALT + SHIFT + left click.

  • Duplicate: you can duplicate any element in the level by drag it with CTRL+ALT keys.

    NOTE: For now, "undoing" a selection move or duplication will require multiple undos (one per affected layer). Undo/Redo features need a major rework, but this will only happen in a future update (see #151). Sorry for the inconvenience until this update!

  • Duplicate definitions: you can duplicate any Definition (layers, enums, entities etc.) by using the new context menu (right click or use "3-dots" buttons) in all panels.

  • Duplicate rules or rule groups: another much needed addition.

  • Multi-lines texts added to Entity custom field types.

  • Type conversions: Entity fields can now be converted to different types (like turning an Integer value to a Float, or into an Array). Some conversions might not be lossless.

  • Renamed the old Enhance active layer option to Single layer mode

  • Alt+left click now picks elements in all layers. If you have the Single layer mode activated (A key), it will pick in current layer only.

  • Added an option to allow selection of empty spaces

  • Better mouse coordinates display in editor footer

  • Added rectangle selection size to editor footer

  • Use DELETE key to delete selected elements

  • Use CTRL+A shortcut to select everything (limited to current layer in Single Layer Mode).

  • Optimized the JSON format to reduce its size (should be approximately 40-50% smaller).

  • Added the up-to-date JSON format doc to the app Home page.

  • Added fullscreen button to view Home changelogs

  • Pressing ENTER on the Home screen now opens last edited map.

  • Side bar is now more compact

  • Better "Enum sync" window

  • Fixed "Enum value in use" detection

  • Removed duplicate sample map file

  • Fixed mouse wheel zoom limits

  • Fixed "color" field size in Entity instance editor when the value wasn't default.

  • Updated help window

  • Pressing Escape key now leaves focused inputs first instead of closing panels.

  • Many bug fixes & minor enhancements

Json format changes

The JSON format was optimized to reduce its size (should be approximately 40-50% smaller). See changes below, or check the JSON_DOC.md.

Auto-layer tiles

  • Removed layerInstance.autoTiles
  • Added layerInstance.autoLayerTiles which is a more compact version of the tiles data generated by Auto-layer rules. It contains the following fields:
    • px: [x,y]: an array of 2 values representing the level [x,y] pixel coordinates of the tile.
    • src: [x,y]: an array of 2 values representing the tileset [x,y] pixel coordinates of the tile.
    • f: a 2-bits integer to represent the mirror transformations of the tile: Bit 0 = X flip, Bit 1 = Y flip
    • d: this field contains internal data used by the Editor.

Entity instances

  • Removed entityInstance.x/y
  • Removed entityInstance.__cx/__cy
  • Added entityInstance.px: an array of 2 values representing [x,y] pixel coordinates of the entity.
  • Added entityInstance.__grid: an array of 2 values representing [cx,cy] grid-based coordinates of the entity.

Tile layers

  • The format of tile-layer tiles was unified with auto-layer tiles.
  • layerInstance.gridTiles is now an array of:
    • px: [x,y]: an array of 2 values representing the level [x,y] pixel coordinates of the tile.
    • src: [x,y]: an array of 2 values representing the tileset [x,y] pixel coordinates of the tile.
    • f: a 2-bits integer to represent the mirror transformations of the tile: Bit 0 = X flip, Bit 1 = Y flip
    • d: this field contains internal data used by the Editor.

Don't miss a new ldtk release

NewReleases is sending notifications on new releases.