daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Mar 21st, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. level = 0
  2. while true do
  3.     emu.frameadvance();
  4.     i = joypad.getimmediate()
  5.     if i["P1 Select"] and (prevstate ~= i["P1 Select"]) then --detect when select is _pressed_
  6.         savestate.loadslot(1)
  7.         level = level + 1
  8.     end
  9.     memory.write_u8(0x0031,level)
  10.     memory.write_u8(0x005D,0xFE)
  11.     for i=0,7 do --hax infinite energy and weapons
  12.         memory.write_u8(0x006A+i,0x1C)
  13.     end
  14.     gui.drawText(0,8,"Current Level: " .. bizstring.hex(level))
  15.     prevstate = i["P1 Select"]
  16. 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