Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p = {0,0,0,0,0,0}
- local cam = {0,0}
- local function objects()
- for i=0,15 do
- gui.box(memory.readbyte(0x379+i)-8,memory.readbyte(0x38f+i)-4,memory.readbyte(0x379+i),memory.readbyte(0x38f+i)+4)
- end
- end
- local function Stuff()
- p[1] = memory.readbyteunsigned(0x379) -- x
- p[3] = memory.readbyteunsigned(0x38f) -- y,
- cam[1] = memory.readword(0x50, 0x51) -- camx
- cam[2] = memory.readword(0x52, 0x89) -- camy
- gui.text(1, 48, string.format("X %3d\nY %3d\nPOW: %3d",p[1],p[3],memory.readbyte(0x57d)))
- gui.text(1, 77, string.format("Xcam: %4d\nYcam: %4d",cam[1], cam[2]))
- gui.box(memory.readbyteunsigned(0x207),memory.readbyteunsigned(0x208),memory.readbyteunsigned(0x20B),memory.readbyteunsigned(0x220))
- gui.text(p[1]-16,p[3],string.format("X %4d\nY %4d", p[1]+cam[1], p[3]+cam[2]))
- gui.text(10,10,string.format("Boss hp: %3d or %1d:%1d:%1d--%1d", memory.readbyte(0x5a2),memory.readbyte(0x493)
- ,memory.readbyte(0x494),memory.readbyte(0x495),memory.readbyte(0x496)))
- gui.text(10,20,string.format("Timer: %3d\nState: %2X\nSpeedometer: %d", memory.readbyte(0x5b9),memory.readbyte(0x300),memory.readbyte(0x3a5)))
- objects()
- end
- emu.registerafter(Stuff)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement