Skip to content

Instantly share code, notes, and snippets.

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
@Level0gamedev
Level0gamedev / dun-gen.lua
Last active June 11, 2017 20:15
Recursive Division Dungeon Generator (pico-8 code)
dungeon = {} --array for dungeon tiles
dungeon.w = 48
dungeon.h = 32
rooms= {}
wall_h = 1
grid_w = nil
grid_h = nil