Bouncing Faces 500

Shoot the bouncing enemies. Over time, more enemies will come to make things harder.

Each enemy requires 15 hits to be taken down.

A tiny TweetTweetJam-9 entry in 498 characters of code.

Controls:

  • Left/Right: move your ship left/right
  • Fire: shoot bubbles.

Code:

_set_fps(60)x=60f=120g=240p={}w={}s=0::_::cls(1)rect(0,126,127,127,3)?s
if(#p<=1+t()\40)add(p,{a=rnd(f),b=0,v=rnd(.5),l=15})
b=btn()x=mid(x+(b&2)/2-(b&1),f)
if(btnp(4)and #w<5)add(w,{x=x,y=f})
for q in all(p)do
q.a+=1q.a%=g
q.b+=q.v+1q.b%=g
a=min(q.a,g-q.a)b=min(q.b,g-q.b)if(abs(a-x)<6and abs(b-f)<4)run()
for r in all(w)do
if(abs(a-r.x)<6and abs(b-r.y)<4)q.l-=1del(w,r)
end?"😐",a,b,10
if(q.l<1)del(p,q)s+=1
end
for r in all(w)do
r.y-=2?"●",r.x,r.y,12
if(r.y<-6)del(w,r)
end?"★",x,f,7
flip()goto _
Published 10 days ago
StatusReleased
PlatformsHTML5
AuthorSkyBerron
GenreShooter
Made withPICO-8
TagsPICO-8, tweettweetjam

Leave a comment

Log in with itch.io to leave a comment.