Flappy with Spikes (TweetTweetJam 7)
Move right touching hearts to recharge energy and avoiding spikes. A game in 557 characters of code for TweetTweetJam 7.
Controls: Left / Right / Fire
PICO-8 Source Code:
_set_fps(60)h=0w="✽"f=128::s::z=0n=0m=64s=0p={}x=32y=40v=0e=f::_::cls()b=btn()x+=(b&2)/2-(b&1)y+=v v+=.04z-=(z-x+32)/9 ?s ?h if(btnp(4))v=-1.4?"\as2cf" if(z>n)add(p,{x=z+160,y=16+rnd(96),a=rnd(),v=(rnd()-.5)/99,n=rnd(6)})m*=.99s+=1n+=m for i=0,16do j=8*i-z%8 ?w,j,0,9 ?w,j,123 end for q in all(p)do for i=0,q.n do k=i*8a=q.x+k*cos(q.a)b=q.y+k*sin(q.a)c=q.n ?c<1and"♥"or w,a-z,b,c<1and 8or 10 if(abs(a-x)<4and abs(b-y)<3)e=c<1and f or 0 end q.a+=q.v if(z-q.x>f)del(p,q) end if(y!=mid(6,y,123)or e<0)h=max(s,h)goto s ?"웃",x-z,y,12 rect(0,0,e)e-=.1flip()goto _
Leave a comment
Log in with itch.io to leave a comment.