0,>S}Wuq@]@?033330""" """" "3033330003333""" "BD@D"" ""033330003303303 " BDDDDDDD"  030330330333330033 "BDB""D@$"BBD" 330003333303000 """"43333333"""""00033300 """$333333#""" 03033""0 ""DC$" 0""033 """"133# "D3333C$ 333"""" 0333#""""""""""33# "33<0<3# 33"""""""""""330 "#""3303# " "  ""3# 2300"#3""  "1#33 033333 33#3   "" 00  " """033033 """""0000"""330333333333"00  033033  """   """"""""  0333303333 " """" " 333033 """ ""003030 """"03 03 0333030003333303333313333@ """@03333033333033300@ ""!""@030333030033030333@A0333333 000@A000 3D3030@A0033@30333D33333330033@A03302333333C433300D33"0@A0!23D0003""00!"230@DDDDDDDD """"0@@0!""""DDDDDDDDDD"0@@0"@D"""0@@0 ""@DDDDDD"0@@@D 0 DDDDDDDD0333DDD@@DDD4330DD@3333033@@DD@DDB3330333D@D 333333 ""DDDD$""033333#@D@D #""220"""DD$""202"""#@D@@ 23#2@ D@ B0"33 @@"" "CD@ ""332@""DDD@DD$"B023"""@@D " ""  C@ 3033@"AD@D!A0330 @@ " """" @ 003@!"A@@D!"A030 @ """" @ 0333A!""@@"""A0333 @ !@ 330@"@@"B000 @ !""""@ 33@"@@"B03 @""""""""DDD 0<23"""@B"""232< @DD """ "DDD00@ ",AB","@00@DD """" 333@ BDBD,@033""" 0@ """""""""@0!""33$"""33 " !@@@@  033 133 DDD113AD333@DD 3 < 330333DD@D@@@DDD03333330DDDD@DDD@3333@@DDD@D@@@D"!@DD@D@""""@DDDDDDDDDDD """"@@ ,""@@"e^efnfUnnfUUefUUffnfUUUUfffVefUf^UU^^U^UUU莈wwU^ww^^UUUU^~~wwwUU~www~UUUU^~~~UU~~~UUUU^~~~UU~~~UUU^^ww~^U^Uwww^P^U~~~^UUUUUUUUU~w~U^n^U^UuWuwUXU^UUwwUwU^UUnn^UUUU~wwUUUUUUUUPUUUUUUUuww^UUUUnnPUeU^nUUnfnUU~uww^fff^~wwu^UeffVU~fffffffffuUUnffUnffn~ww~UehhUuwwwnnnfUnnf^UUUUnf~~Wnf`VUf`f^~~nfUUUUUn^UUUUUUfffn~pvwfff掆fffvwvpnnff^UUUUUUUeffVffnwwff~wnffVfff^^^~~hf^^nfww^Vnn^~wwwUXfff`ffVXwww~^nnffffn^UUn~~wef莎ef~w~nUUUnffffffnnUnw~wwUf舎eV~ww~nXnfnffnfnffwwvffhf~vwfffnfnn~~nwwfhngvwg~~nnn~vfffggfffffggffv~nnnn~vwwwwwffffwwwwww~nnwwww~ww授www~www~wwwxww~f~PU^^^U~nnffnUUUUUUeffff~^^UU^UUU~fffffV^nUUU^UUnU^ffffwgnfV^^UeUU^^^Ue^U^^ffnw~wgnVUUXen^^UUfnwww~wwwwwwwwwwU^U~~ww^^V^~ww~UU^vwwwwwwxwww~wWUUU~w~^U^V^U~~w^UUUwwnU~~~^^UV~~~Unww~~~~w^www^XeU^n^^www^uw~~~~w~~~~w^Uu^UUeUPn^UU~UUuw~~~~w~~~ww^wp^ffVUUUff^~p^www~~~~wwwwwuwwwwnfU^ff~wwww~wwwww~www~w~U^~~wwwwww^UU^UUU^U^~w^^~fffw~^^w~ffnfnfnnwww^^~wwnnffnfffffnnn~wwww~wwwwnnfnfffnnfffnffffnww^^^^wwnnn~^^^UUU^^~fnnnn~ww^UU^wwww^UU^UU~www^UU^~wwnnfff^^~~U^^^U^^^~~^^fff~nffnn^U^wwUUUUUU^UUUUUww^UUnnfff~nff^^Un~^U^UUUUU~n^U^nfnnf^UUUugww~wwwwwwwgwUUUUnnnffUwgnvw~~fgwWffn~~nf^U~fnvw~w~wffvUUfn~~~~wwfffffffffff^uwwnvwwwfvwwUnffffffffffvwww~~nnffff^wwwnxwwwwfvwwWnffffn~wwwff~nnffhfnn~ff~ww~~nnfffhwwwwwwgfffnn~w~~w~~~nffffxwwwwwwwfffff~~~wwwwwww~nn~wwnnnfhhfffhhfnn~wwnnw~wwwwwwww~wnnnfnhnfnnww~www~~~wwwwfffnf莈ffnff~wwww~~~wwww~fffnffffnfw~wwww -- title: Flying worms -- author: MiratCanBayrak on Twitter. -- desc: When you stare at screen you start to see some shapes. -- site: website link -- license: MIT License (change this to your license of choice) -- version: 0.1 -- script: lua random=math.random --lines={ -- {x=50, -- y=50, -- j={{d="R",l=10}, -- {d="D",l=10}, -- {d="R",l=10}, -- {d="D",l=10}, -- {d="L",l=10}, -- {d="D",l=10}, -- {d="R",l=10}} -- }} local lines={} local freq=random(5) local stops=random(100) for i=1,random(1,40) do lines[i]={ x=random(240/2), y=random(136/2), j={}, c=random(1,4) } for i2=1,random(1,2) do pos=random(1,4) lines[i].j[i2] ={ d=string.sub("UDLR",pos,pos), l=random(1,10) } end end function water() h=68 t=time()/200 for x=0,239 do for y=h,135 do ox=x+2*math.sin(t+y) oy=h-(y-h)-1 oc=pix(ox,oy) if oc>0 then pix(x,y,oc+4) else pix(x,y,14) end end end end function TIC() cls() for i, l in ipairs(lines) do local x1=l.x local y1=l.y local x2=x1 local y2=y1 if random(freq)==1 or l.x<1 or l.x>119 or l.y<1 or l.y>67 then local o="" if l.x<120 then o=o.."L" end if l.x>0 then o=o.."R" end if l.y<68 then o=o.."D" end if l.y>0 then o=o.."U" end local p=math.random(1,#o+stops) table.insert(l.j,1,{ d=string.sub(o,p,p), l=0 }) end for ji=1, #l.j do j=l.j[ji] -- If we are on first edge -- it's length must be increased. if ji==1 then if j.d=="U" then l.y=l.y-1 end if j.d=="D" then l.y=l.y+1 end if j.d=="L" then l.x=l.x+1 end if j.d=="R" then l.x=l.x-1 end end -- If we are on last edge -- It's length must be decrased. if ji==#l.j then -- If edge length is 0, then it -- must be removed from the line. if j.l > 0 then j.l=j.l-1 else -- edge length is 0, remove it. table.remove(l.j,ji) end end -- Set line positions if j.d=="L" then x2=x2-j.l elseif j.d=="R" then x2=x2+j.l elseif j.d=="U" then y2=y2+j.l elseif j.d=="D" then y2=y2-j.l end line(x1,y1,x2,y2,l.c) line(240-x1,y1,240-x2,y2,l.c) pix(l.x,l.y,12) pix(240-l.x,l.y,12) x1=x2; y1=y2; if ji==1 then j.l=j.l+1 end end end line(0,68,320,68,0) water() end