local gc=love.graphics local int,ceil,rnd,abs=math.floor,math.ceil,math.random,math.abs local max,min,sin,cos=math.max,math.min,math.sin,math.cos local scr=scr local BGinit,BGresize,BGupdate,BGdraw,BGdiscard={},{},{},{},{} local BGvars={_G=_G} function BGdraw.none() gc.clear(.15,.15,.15) end function BGdraw.grey() gc.clear(.3,.3,.3) end function BGinit.glow() t=0 end function BGupdate.glow(dt) t=t+dt end function BGdraw.glow() local t=(sin(t*.5)+sin(t*.7)+sin(t*.9+1)+sin(t*1.5)+sin(t*2+10))*.08 gc.clear(t,t,t) end function BGinit.rgb() t=0 end function BGupdate.rgb(dt) t=t+dt end function BGdraw.rgb() gc.clear( sin(t*1.2)*.15+.2, sin(t*1.5)*.15+.2, sin(t*1.9)*.15+.2 ) end function BGinit.strap() t=0 img=_G.IMG.gameBG2 end function BGupdate.strap(dt) t=t+dt end function BGdraw.strap() gc.setColor(.5,.5,.5) local x=t%16*-64 ::L:: gc.draw(img,x,0,nil,8,scr.h) x=x+1024--image width*8 if x