dofile(commondir.."generic-tile.noe") mapregion = {x0=0, y0=2, x1=80, y1=22} minipos = {x=1, y=0.1} -- ADOM wants to input directions as numbers dirkeys = numberkeys function xtileaux2(ch, co, av, ba) if ch == "/" and (co == vgaget(6)) then return tspatc(rb, spFlat + spFloor + spCeil + spIFloor, ch) elseif ch == "+" and (co == vgaget(6)) then return tspatm(wallcol(co), rb, spFlat + spWall + spIWall + spICeil, ch) elseif ch == "=" and (co == vgaget(1)) then return lavacol(co) end end function findpc() if pcat(pcursor) then ncursor = pcursor end mapon = pcat(ncursor) end menuF4 = false setwindowtitle("Ancient Domains of Mystery") defaultmode(2) rungame(caller3("ADOM", "adom"))