-- PICO-8 Source Code -- Applies earthbound-like effects to the image on your spritesheet
function _init() typ = flr(rnd(2)) amp = rnd(10)+2 end
function _draw() cls() for i=0,127 do local _off = flr(amp*sin((time()/10)+i/100)+0.5) if typ == 0 then sspr(0,i,127,1,0+_off,i) sspr(0,i,127,1,-127+_off,i) sspr(0,i,127,1,127+_off,i) elseif typ == 1 then local _line = i+_off if(_line > 127) _line -= 127 if(_line < 0) _line += 127 sspr(0,_line,127,1,0,i) end end end