Tiles - HopsonCommunity/CommunityCrawler GitHub Wiki
Tiles
tiles
, defined in tiles.lua
as a table, have the following attributes:
id
String. The Unique ID of the tile.
solid
Boolean. Whether the player or other entities can pass through the file.
lightHitbox
Table of coordinates. The hitbox of the tile in regards to light.
emit
Boolean. Whether the tile emits off any light.
emitStrength
Double. The range in which the tile emits light.
emitColor
Table consisting of RGB values, 0-255. eg.
emitColor = {r = 174, g = 0, b = 0}
TileMap
tileMap
defined in globals.lua
as a table is a list of all the tiles on the map.
The way to access elements in the tileMap
is
tileMap[x .. " " .. y]
Where x
and y
are the coordinates of the tile.