-
Notifications
You must be signed in to change notification settings - Fork 2
Tiles
DeatHunter edited this page Apr 17, 2020
·
3 revisions
tiles, defined in tiles.lua as a table, have the following attributes:
String. The Unique ID of the tile.
Boolean. Whether the player or other entities can pass through the file.
Table of coordinates. The hitbox of the tile in regards to light.
Boolean. Whether the tile emits off any light.
Double. The range in which the tile emits light.
Table consisting of RGB values, 0-255. eg.
emitColor = {r = 174, g = 0, b = 0}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.