Tiled class

This component renders a tile map based on a TMX file from Tiled.


Tiled(String filename, Size destTileSize)
Creates this Tiled with the filename (for the tmx file resource) and destTileSize is the tile size to be rendered (not the tile size in the texture, that one is configured inside Tiled).


batches Map<String, SpriteBatch>
read / write
destTileSize Size
read / write
filename String
read / write
future Future
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
image Image
read / write
map TileMap
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


generate() → void
Generate the sprite batches from the existing tilemap.
getObjectGroupFromLayer(String name) Future<ObjectGroup>
This returns an object group fetch by name from a given layer. Use this to add custom behaviour to special objects and groups.
loaded() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
render(Canvas c) → void
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]

Static Properties

paint Paint
read / write