-
-
Notifications
You must be signed in to change notification settings - Fork 657
Open
Description
Summary
melonJS currently supports Tiled map format up to version 1.9, but with some gaps in 1.8 and 1.9 features. This issue tracks completing support for those versions and adding support for newer releases up to 1.12.
See Tiled TMX changelog and Tiled releases for full details.
Tiled 1.8 (gaps in current support)
-
repeatx/repeatyon image layers — Tiled uses boolean attributes; melonJS has therepeatstring infrastructure but doesn't read these from TMX data -
parallaxoriginx/parallaxoriginyon map — parallax origin offset not implemented - Custom property types (
propertytype) — class-based custom property types and nested<properties>for class-type values not supported
Tiled 1.9 (gaps in current support)
- Tile sub-rectangles —
x,y,width,heightattributes on<tile>elements for defining sub-regions within a tileset image -
tilerendersize/fillmodeon tilesets — controls how oversize tiles are rendered relative to the grid
Tiled 1.10 (Mar 2023)
- Handle
isCollectiontileset property (renamed fromcollection)
Tiled 1.11 (Jun 2024)
- Support embedded images on tilesets and image layers (inline base64 image data in TMX/TMJ)
- Handle JSON tileset tile ordering fix (old-format
.tsjfiles)
Tiled 1.12 (Mar 2025)
- Capsule object shape — new geometric shape for objects (collision approximation via polygon or rounded rect)
- Per-object opacity — individual opacity on objects (currently only layer-level)
- List support in custom properties — properties can now be arrays, not just scalar values
- Oblique map orientation — new orientation with X/Y axis skewing (new TMX renderer needed)
- SVG 1.2 / CSS blending modes on layers — apply
globalCompositeOperation(Canvas) or blend state (WebGL) per layer
Version tracking
A TILED_SUPPORTED_VERSION constant has been added to packages/melonjs/src/level/tiled/constants.js. A warning is now logged when a map's format version is newer than the supported version. This constant should be bumped as features above are implemented.
Priority suggestion
- Fix 1.8/1.9 gaps first (
repeatx/repeaty, tile sub-rects,tilerendersize/fillmode) - Per-object opacity & layer blend modes (easy wins, high visual impact)
- List properties & custom property types (avoid breaking on newer maps)
- Capsule shape (polygon approximation)
- Embedded images (self-contained maps)
- Oblique orientation (niche, low priority)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels