Tiled class

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

Constructors

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).

Properties

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

Methods

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. [...]
inherited
render(Canvas c) → void
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

paint Paint
read / write