tile coloration based on type

This commit is contained in:
2024-03-19 12:50:59 -05:00
parent d7bc833df7
commit a3efe2369d
5 changed files with 12 additions and 2 deletions

View File

@ -1,7 +1,7 @@
local map = {
map_tiles = {
{ "-", "-", "w", "w", "-", "-", "-", "-", "-", "-" },
{ "-", "-", "w", "w", "-", "-", "-", "-", "-", "-" },
{ "-", "_", "w", "w", "-", "-", "-", "-", "-", "-" },
{ "-", "-", "w", "w", "-", "w", "-", "-", "-", "-" },
{ "w", "-", "-", "-", "w", "w", "-", "-", "-", "-" },
{ "w", "-", "w", "-", "-", "w", "w", "w", "-", "-" },
@ -14,6 +14,8 @@ local map = {
mapCrypt = function(self, tile)
if tile == "-" then
return "floor_stone"
elseif tile == "_" then
return "floor_wood"
elseif tile == "w" then
return "wall_stone"
end