Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Player
- local px = 0x000AF6
- local py = 0x000AFA
- local plife = 0x0009C2
- --Camera
- local camx = 0x000911
- local camy = 0x000915
- --Enemy
- -- Enemy base 0x0F7A
- --Projectiles
- --Projectile xbase 0BB4
- --Projectile ybase 0BB
- local function Samus()
- local x = memory.readword(px) - memory.readword(camx)
- local y = memory.readword(py) - memory.readword(camy)
- local xrad = memory.readbyte(0x7E0AFE)
- local yrad = memory.readbyte(0x7E0B00)
- gui.box(x + (xrad * -1), y + (yrad * -1), x+xrad,y+yrad,"#0000FF35","#0000FFFF")
- end
- local function EnemyBoxes()
- local x = 0
- local y = 0
- local xrad = 0
- local yrad = 0
- local oend = 14
- local base = 0xF7A
- for i = 0, oend, 1 do
- if i > 0 then
- base = 0xF7A + (i * 0x40)
- else
- base = 0xF7A
- end
- x = memory.readword(base) - memory.readword(camx)
- y = memory.readword(base+ 4) - memory.readword(camy)
- xrad = memory.readbyte(0x0F82 + (i * 0x40))
- yrad = memory.readbyte(0x0F84 + (i * 0x40))
- gui.box(x + (xrad * -1),y + (yrad * -1),x+xrad,y+yrad,"#FF000035","#FF0000FF")
- end
- end
- local function Projectiles()
- local x
- local y
- local xrad
- local yrad
- local oend = 8
- local projxbase = 0xB64
- local projybase = 0xB78
- local projxrbase = 0xBB4
- local projyrbase = 0xBC8
- for i = 0, oend, 1 do
- x = memory.readword(projxbase + (i*2)) - memory.readword(camx)
- y = memory.readword(projybase + (i*2)) - memory.readword(camy)
- xrad = memory.readbyte(projxrbase + (i * 2))
- yrad = memory.readbyte(projyrbase + (i * 2))
- gui.box(x + (xrad * -1), y + (yrad * -1), x+xrad,y+yrad)
- end
- end
- gui.register(function()
- Samus()
- EnemyBoxes()
- Projectiles()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement