lua:scripting:firetemple
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
lua:scripting:firetemple [2015/01/01 09:41] – vodur | lua:scripting:firetemple [2015/01/01 09:50] (current) – vodur | ||
---|---|---|---|
Line 107: | Line 107: | ||
end | end | ||
- | --local cell=501 | + | --Randomized Prim's algorithm http:// |
local walls={} | local walls={} | ||
local maze={} | local maze={} | ||
Line 118: | Line 118: | ||
local wallind=randnum(1,# | local wallind=randnum(1,# | ||
local wall=walls[wallind] | local wall=walls[wallind] | ||
+ | table.remove(walls, | ||
| | ||
if not maze[wall.exit.toroom] then | if not maze[wall.exit.toroom] then | ||
Line 130: | Line 131: | ||
end | end | ||
| | ||
- | | + | |
end | end |
lua/scripting/firetemple.1420105315.txt.gz · Last modified: 2015/01/01 09:41 by vodur