Destroy the alien space ships.

A game in 553 characters of code for TweetTweetJam 5


This game was made for #TweetTweetJam and contains only 553 characters of code, including art. The code is below:

_set_fps(60)f,m,h,g=128,64,0,mid::s::x,y,w,z,s,t,p=m,96,0,0,0,.3,{}for i=1,999do
p[i]={a=rnd(),y=-i*32}end::_::cls()b=btn()t+=.0001
x+=(b&2)-2*(b&1)y+=(b&8)/4-(b&4)/2x,y=g(3,x,124),g(2,y,125)if z>-6 then
z-=3
else
if(btnp(4))w,z=x,y
end
h=max(s,h)for i=1,999do
q=p[i]q.y+=t
q.a+=t/f
if(q.y>f+3)q.y-=32*999
if g(-3,q.y,f+3)==q.y then
u,v=m+60*cos(q.a),q.y
?"🐱",u-3,v-2,8
if(u==g(w-3,u,w+3)and g(z-2,v,z+2)==v)q.y-=32*999 s+=1 z=-6
if(u==g(x-6,u,x+6)and g(y-2,v,y+2)==v)goto s
end
end
?"|",w-2,z-2,12
?"★",x-3,y-2,10
?"s:"..s.."\nh:"..h,8,8,6
flip()goto _


StatusReleased
PlatformsHTML5
Rating
Rated 4.3 out of 5 stars
(3 total ratings)
AuthorSkyBerron
GenreShooter
Made withPICO-8
TagsPICO-8, tweettweetjam

Comments

Log in with itch.io to leave a comment.

Nice.  The movement speed feels perfect I just wish I could shoot more than one shot at a time.

Yep, I was a bit disappointed as I reached char limit before I could add more bullets and more features to this little game.

Thanks. I'm not very happy with this entry, I got tired of fine tuning and went for coding another game. The bullet is a bit slow and there's only one bullet on screen at once. Combined with the sinusoidal movement of the enemy, that means your best chance to hit enemies is either at left or right side and close to the enemy. If you choose not not take risks and just dodge the enemies, then you won't be able to hit them.

It feels good to control! Fun to play. It's as hard to get hit as it is to hit enemies.