Скриптик:
Download Chip&Dale.luaLanguage: lua
function draw()
CamX = memory.readbyte(0xfd)*256 + memory.readbyte(0xfc)
CamY = memory.readbyte(0xfb)*256 + memory.readbyte(0xfa)
ChX = memory.readbyte(0x6A)*256 + memory.readbyte(0x68)
ChY = memory.readbyte(0x520)*256 + memory.readbyte(0x510)
ChXsub = memory.readbyte(0x470)
ChYsub = memory.readbyte(0x460)
ChXscr = ChX - CamX
ChYscr = ChY - CamY
DX = memory.readbyte(0x6B)*256 + memory.readbyte(0x69)
DY = memory.readbyte(0x521)*256 + memory.readbyte(0x511)
DXsub = memory.readbyte(0x471)
DYsub = memory.readbyte(0x461)
DXscr = DX - CamX
DYscr = DY - CamY
gui.box(ChXscr-8, ChYscr-12, ChXscr+8, ChYscr+12, "#ff880000")
-- gui.box(DXscr-8, DYscr-12, DXscr+8, DYscr+12, "#22ee0000")
gui.text(220, 1, CamX)
gui.text(220, 9, CamY)
gui.text(1, 1, ChX.."."..ChXsub, "#ff8800", "#000000")
gui.text(1, 9, ChY.."."..ChYsub, "#ff8800", "#000000")
-- gui.text(135, 1, DX.."."..DXsub, "#22ee00", "#000000")
-- gui.text(135, 9, DY.."."..DYsub, "#22ee00", "#000000")
end
emu.registerafter(draw);