working on color
This commit is contained in:
@ -19,11 +19,26 @@ local map = {
|
||||
end
|
||||
end,
|
||||
mapDecrypt = function(self, tile)
|
||||
if tile == "floor_stone" then
|
||||
return "-"
|
||||
elseif tile == "wall_stone" then
|
||||
return "w"
|
||||
end
|
||||
-- TODO: Rework function so it returns both char and mat type
|
||||
-- This introduces breaking changes
|
||||
local tileset = {}
|
||||
if string.find(tile, "wall") then
|
||||
tileset[1] = "w"
|
||||
elseif string.find(tile, "floor") then
|
||||
tileset[1] = "-"
|
||||
end
|
||||
if string.find(tile, "stone") then
|
||||
tileset[2] = "stone"
|
||||
elseif string.find(tile, "wood") then
|
||||
tileset[2] = "wood"
|
||||
end
|
||||
return tileset
|
||||
|
||||
-- if tile == "floor_stone" then
|
||||
-- return "-"
|
||||
-- elseif tile == "wall_stone" then
|
||||
-- return "w"
|
||||
-- end
|
||||
end,
|
||||
-- Map Populate / check if map exists
|
||||
populate = function(self, map)
|
||||
@ -46,8 +61,6 @@ local map = {
|
||||
return true
|
||||
end
|
||||
end,
|
||||
tileColor = function(self)
|
||||
end
|
||||
}
|
||||
local tiles = {}
|
||||
|
||||
|
Reference in New Issue
Block a user