TileMap

tile map object with fast AABB collision

Constructors

this
this(Vec2!ulong size)

initialises the tile map

Members

Functions

CollidesWith
bool CollidesWith(SimpleBox other)

checks collision with fast AABB should not be called by user

FromIDs
void FromIDs(int[][] ids)

loads tiles from a 2d array of tile ids

Render
void Render(Project parent)

renders the object should not be called by user

Update
void Update(Project parent)

updates the tile map should not be called by user

Variables

pos
Vec2!int pos;
Undocumented in source.
tileDefs
TileDef[int] tileDefs;
Undocumented in source.
tileSize
Vec2!int tileSize;
Undocumented in source.
tiles
Tile*[][] tiles;
Undocumented in source.

Meta