Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Journey To Silius Collision Box Viewer
- --For FCEUX 2.2.x
- --Author Pasky
- local function draw_axis(x,y)
- gui.line(x,y-4,x,y+4)
- gui.line(x-4,y,x+4,y)
- end
- local function player()
- local life = 0x00B0
- local x = memory.readbyte(0x0506)
- local y = memory.readbyte(0x0507)
- end
- local function Collision()
- local x
- local y
- local xrad
- local yrad
- memory.registerexec(0xE72A,function()
- x = memory.readbyte(0x0016)
- x2 = memory.getregister("A")
- y = memory.readbyte(0x0017)
- y2 = memory.readbyte(0x0002)
- xrad = memory.readbyte(0x0000)
- yrad = memory.readbyte(0x0001)
- draw_axis(x,y)
- draw_axis(x2,y2)
- gui.box(x+xrad,y+yrad,x-xrad,y-yrad,"FF000035","#FF0000FF")
- end)
- end
- while true do
- player()
- Collision()
- emu.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement