Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Position = "Positions :"
- MovingDirection = "Directions:"
- Counter = "Counter:"
- DirectionChange = "New direction!"
- Directions = {}
- Directions[0] = "L"
- Directions[1] = "R"
- Floors = {}
- Floors[0] = "1st floor fire"
- Floors[1] = "2nd floor fire"
- Floors[2] = "3rd floor fire"
- Floors[3] = "4th floor fire"
- function DirectionChangeNotify()
- gui.drawText(0,30,Floors[emu.getregister("X")],white,black,10)
- gui.drawText(0,40,DirectionChange,white,black,10)
- end
- event.onmemoryexecute(DirectionChangeNotify,0xf48d)
- event.onmemoryexecute(DirectionChangeNotify,0xf4d1)
- while true do
- gui.drawText(0,0,Position,white,black,10)
- for i = 0,3 do gui.drawText(72+(i*22),0,memory.readbyte(0xc1+i),white,black,10) end
- gui.drawText(0,10,MovingDirection,white,black,10)
- for i = 0,3 do gui.drawText(72+(i*22),10,Directions[memory.readbyte(0xc5+i)],white,black,10) end
- gui.drawText(0,20,Counter,white,black,10)
- gui.drawText(50,20,memory.readbyte(0xe7),white,black,10)
- emu.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment