local gc=love.graphics function sceneInit.setting_control() sceneTemp={ das=SETTING.das, arr=SETTING.arr, pos=0, dir=1, wait=30, } BG.set("bg1") end function Tmr.setting_control() local T=sceneTemp if T.wait>0 then T.wait=T.wait-1 if T.wait==0 then T.pos=T.pos+T.dir else return end end if T.das>0 then T.das=T.das-1 if T.das==0 then if T.arr==0 then T.pos=T.pos+7*T.dir T.das=SETTING.das+1 T.arr=SETTING.arr T.dir=-T.dir T.wait=26 else T.pos=T.pos+T.dir end end else T.arr=T.arr-1 if T.arr==0 then T.pos=T.pos+T.dir T.arr=SETTING.arr elseif T.arr==-1 then T.pos=T.dir>0 and 8 or 0 T.arr=SETTING.arr end if T.pos%8==0 then T.dir=-T.dir T.wait=26 T.das=SETTING.das end end end function Pnt.setting_control() --Testing grid line gc.setLineWidth(4) gc.setColor(1,1,1,.4) gc.line(550,540,950,540) gc.line(550,580,950,580) gc.line(550,620,950,620) for x=590,910,40 do gc.line(x,530,x,630) end gc.setColor(1,1,1) gc.line(550,530,550,630) gc.line(950,530,950,630) --Testing O mino _=blockSkin[SETTING.skin[6]] local x=550+40*sceneTemp.pos gc.draw(_,x,540,nil,40/30) gc.draw(_,x,580,nil,40/30) gc.draw(_,x+40,540,nil,40/30) gc.draw(_,x+40,580,nil,40/30) end