Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function sleep(n)
- local time = emu.framecount() + n
- repeat emu.frameadvance() until emu.framecount() > time
- end
- function blueR()
- joypad.set(inputsA,1)
- sleep(2)
- joypad.set(inputsR,1)
- end
- function redR()
- joypad.set(inputsA,1)
- sleep(2)
- joypad.set(inputsA,1)
- sleep(2)
- joypad.set(inputsR,1)
- sleep(2)
- end
- function blueL()
- joypad.set(inputsA,1)
- sleep(2)
- joypad.set(inputsL,1)
- end
- function redL()
- joypad.set(inputsA,1)
- sleep(2)
- joypad.set(inputsA,1)
- sleep(2)
- joypad.set(inputsL,1)
- sleep(2)
- end
- inputsA = {}
- inputsB = {}
- inputsR = {}
- inputsL = {}
- inputsD = {}
- inputsA['A']=0
- inputsB['B']=0
- inputsR['Right']=0
- inputsL['Left']=0
- inputsD['Down']=0
- for t = 0,10 do
- for i = 0,4 do
- blueR()
- sleep(2)
- redR()
- if i == 4 then
- joypad.set(inputsD,1)
- for o = 0,4 do
- blueL()
- sleep(2)
- redL()
- --joypad.set(inputsA,1)
- --sleep(2)
- --joypad.set(inputsA,1)
- --sleep(2)
- --joypad.set(inputsL,1)
- if o == 4 then
- joypad.set(inputsD,1)
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement