Tiled can export maps as JSON files. That is elm representation of that structure.
decode : Json.Decode.Decoder Level
encode : Level -> Json.Encode.Value
ExtensibleLevelData {}
ExtensibleLevelData { hexsidelength : Basics.Int
, staggeraxis : Axis
, staggerindex : OddOrEven
}
{ addition | backgroundcolor : String
, height : Basics.Int
, infinite : Basics.Bool
, layers : List Tiled.Layer.Layer
, nextobjectid : Basics.Int
, renderorder : RenderOrder
, tiledversion : String
, tileheight : Basics.Int
, tilesets : List Tiled.Tileset.Tileset
, tilewidth : Basics.Int
, version : Basics.Float
, width : Basics.Int
, properties : Tiled.Properties.Properties
}
Used in staggeraxis
property of Level
- (staggered / hexagonal maps only)
Used in staggerindex
property of Level
- (staggered / hexagonal maps only)
Used in renderorder
property of Level
- (orthogonal maps only)