This game badly needs a minimap. Here's a primitive design:
local address = {
facing = 0xff000f,
X = 0xff0010,
Y = 0xff0011,
dungeonID = 0xff0017,
indungeon = 0xff2f29
}
local mapX,mapY,mapsize = 0,0x30,0x1f
local coordX,coordY = 0,0x58
local compassX,compassY = 0,0x60
local dir = {}
dir[0] = "N"
dir[1] = "E"
dir[2] = "S"
dir[3] = "W"
local name = {}
name[0] = "Labyrinth L1"
name[1] = "Labyrinth L2"
name[5] = "Wisdom L1"
name[6] = "Wisdom L2"
name[8] = "Truth"
name[9] = "Strength L1"
name[10] = "Courage L2"
name[11] = "Courage L1"
gui.register( function ()
if memory.readbyte(address.indungeon) == 2 then
local dungeon = memory.readbyte(address.dungeonID)
local X,Y = memory.readbyte(address.X),memory.readbyte(address.Y)
gui.text(mapX,mapY+mapsize,name[dungeon],"blue")
gui.text(coordX,coordY,"("..X..","..Y..")")
gui.text(compassX,compassY,"Facing "..dir[memory.readbyte(address.facing)])
gui.drawbox(mapX,mapY,mapX+mapsize,mapY+mapsize)
gui.drawpixel(mapX+X,mapY+Y,"red")
end
end)
Still needs the actual dungeon shapes, otherwise you just get a dot in a box.
Keep up the good work.