Advertisement
Guest User

Sonic Advance 2 Lua

a guest
Aug 21st, 2012
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. local Xpixel = 0x030059E9
  2. local Xsubpixel = 0x030059E8
  3. local Xposition
  4. local XBlock = 0x030059EA
  5. local Ypixel = 0x030059ED
  6. local Ysubpixel = 0x030059EC
  7. local Yposition
  8. local YBlock = 0x030059EE
  9. local Xvelocity = 0x030059F0
  10. local Yvelocity = 0x030059F2
  11. local Timer = 0x030053E4
  12.  
  13. while true do
  14.  
  15. -- gui hud
  16. gui.opacity(0.70)
  17. gui.drawbox(100,3,210,61,"#00008b", "#dcdcdc")
  18.  
  19. Xposition = memory.readbyte(Xpixel) + (memory.readbyte(Xsubpixel)/256)
  20. gui.text(104,5, "X-Position: " ..Xposition)
  21. gui.text(104,13, "XBlock: " ..memory.readword(0x030059EA))
  22. Yposition = memory.readbyte(Ypixel) + (memory.readbyte(Ysubpixel)/256)
  23. gui.text(104,21, "Y-Position: " ..Yposition)
  24. gui.text(104,29, "YBlock: "..memory.readbyte(0x030059EE))
  25. gui.text(104,37, "Xvelocity: " ..memory.readwordsigned(0x030059F0))
  26. gui.text(104,45, "Yvelocity: " ..memory.readwordsigned(0x030059F2))
  27. gui.text(104,53, "Timer: " ..memory.readword(0x030053E4))
  28.  
  29. vba.frameadvance()
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement