0,]']àPï}Wÿ ç甽½%qy)6o@@ÿA¦ösï÷ôôô”°ÂVl†3-- title: Default Cart but Lode Runner -- author: NatnatGaming101 -- desc: GOing to make a real lode runner someday -- site: website link -- license: MIT License (change this to your license of choice) -- version: 0.1 -- script: lua t=0 g=0 i=0 x=110 y=30 dir=0 step=4 pitch=36 frame=0 state=1 -- 0 = idle, 1 = run state2=1 hold=16 function TIC() -- Frame -- if not (state2 == state) then state2=state t=0 i=0 if (state2 == 0) then step=0 end if (state2 == 1) then step=4 end end cls(0) frame=frame+1 hold=hold-1 if (hold < 0) then hold=0 state=0 i=i+1 else state=1 end if (frame > 1) then frame=0 end -- Button Press -- if (frame == 0) then if btn(0) then y=y-2 end if btn(1) then y=y+2 end if btn(2) then x=x-2 dir=1 end if btn(3) then x=x+2 dir=0 end end if btn(0) or btn(1) or btn(2) or btn(3) then if (frame == 0) then t=t+30 step=step+1 hold=20 end end -- Animation -- if (state == 1 ) then spr(257+t%120//30*2,x,y,0,1,dir,0,2,2) else spr(265+i%60//30*2,x,y,0,1,dir,0,2,2) end -- Update -- print("ZENBEI NO HITTO, LODE RUNNER!",40,84,12) if (step > 3) then step = 0 sfx(1,pitch,-1,1,15,0) if (pitch == 36) then pitch = 29 else pitch = 36 end end g=g+8 spr(1+g/7%120//30*2,110,92,0,1,0,0,2,2) end music(0,0,0,true,false)