Spark Dodger
INFO:
Made in PICO-8 for TweetTweetJam 8.
GOAL:
Survive an infinite army of increasingly larger yellow sparks!
Your time of death is your score. My current high score is 111.
CONTROLS:
ARROW KEYS for movement.
ENTER to pause.
That's about it!
CODE:
?"\ace.a.ce.a.faf" x,y,dx,dy,r,w,g,t,h=64,7,0,0,rnd,128,{},0,60?"\^!5f100▒➡️12☉8" function _update60()t+=1for i=0,500do local x,y=r(w),r(w)circ(x,y-1,1,max(pget(x,y)-1))end if(t/h%5==0)add(g,{x=h,y=h,k=mid((1.05^time()/2),16),v=rnd(1)})?"\ace.g",0,0 foreach(g,function(s)circfill(s.x,s.y,s.k,10)s.x,s.y=s.x+sgn(x-s.x)*s.v,s.y+sgn(y-s.y)*s.v end)if(pget(x,y)==10)run() b=btn()dx+=(b&2)/2-(b&1)dy+=(b&8)/8-(b&4)/4dx*=.98dy*=.98x,y=dx/12+x%w,.5+dy/12+y%w?t\h,64,64,7 rect(0,0,w-1,w-1,3)?"◆",x-3,y-2,7 end
Leave a comment
Log in with itch.io to leave a comment.