SHARE
TWEET

lua script for visual boy advance 24m, starsaver/rubblesaver

a guest Jun 4th, 2015 219 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2.  
  3. function round(num, idp)
  4.   local mult = 10^(idp or 0)
  5.   return math.floor(num * mult + 0.5) / mult
  6. end
  7.  
  8. reallag = (vba.framecount() / 3)- (vba.framecount() % vba.lagcount())
  9.  
  10. gui.opacity(0.65)
  11. gui.drawbox(57,16,250,32, "black", "black")
  12. gui.opacity(0.95)
  13.  
  14. gui.text(62,25, "lag1 " ..vba.lagcount())
  15. gui.text(62,18, "lag2 " ..round(reallag,1))
  16. gui.text(112,18,"x " .. memory.readbyteunsigned(0xc126)+memory.readbyteunsigned(0xc127)*256)
  17. gui.text(112,25,"y " .. memory.readbyteunsigned(0xc12a)+memory.readbyteunsigned(0xc12b)*256)
  18. gui.text(144,25, memory.readbytesigned(0xc142) )
  19.  
  20. vba.frameadvance()
  21. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top