Advertisement
Guest User

SMB1 turbo script

a guest
Jul 24th, 2014
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. --2014 Jul 24 by Rena
  2. --makes Super Mario Bros run crazyfast during load screens,
  3. --death animations, etc (any time you're not controlling Mario).
  4. local oldmode = 0
  5. while true do
  6.     local mode = memory.readbyte(0x000E)
  7.     if mode ~= oldmode then
  8.         --changing the speed frequently breaks things for some reason,
  9.         --so only change it if the mode changed
  10.         if mode == 8 then emu.speedmode("normal")
  11.         else emu.speedmode("maximum")
  12.         end
  13.         oldmode = mode
  14.     end
  15.     emu.frameadvance()
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement