This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cls() | |
function _init() | |
--we need a table to store what is transparent | |
transparent = {8,5,4,10,3,11} | |
--ignore beow two, they are just helpers to move | |
px = 60 | |
py = 60 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dungeon = {} --array for dungeon tiles | |
dungeon.w = 48 | |
dungeon.h = 32 | |
rooms= {} | |
wall_h = 1 | |
grid_w = nil | |
grid_h = nil |