Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function on_paint(flag)
- -- Those cause the screenshot issue
- gui.solidrectangle(0, 0, 512, 448, 0xb0000000)
- gui.rectangle(-120, -120, 700, 700)
- -- Display Mario location for reference
- local x = memory.readsword("WRAM", 0x94)
- local y = memory.readsword("WRAM", 0x96)
- local camx = memory.readsword("WRAM", 0x1462)
- local camy = memory.readsword("WRAM", 0x1464)
- gui.rectangle(2*(x - camx), 2*(y - camy), 32, 48)
- end
- function on_post_load(name, was_savestate)
- gui.repaint()
- end
- gui.repaint()
Advertisement
Add Comment
Please, Sign In to add comment