Play game
KiloKitty's itch.io pageCharacters/Bytes used
1021 bytes
Source Code
p=32v=128j=64camera(0,-p)e={}m=mid
b={}s=add
u={}d=deli
x=p a=abs
y=p r=rnd
k="๐ฑ"g=0c=16f=0h=0l=5for i=1,150 do
o={p=80+r()*20,t=80,y=2+r()*j,dy=r()/2,x=3400-i*i/7,hp=4,f={}}
if(o.y<p)o.dy*=-1
q=r()-1for n=1,3do s(o.f,{dx=-3,dy=q+n-1})end s(e,o)end::_::
if(l<1or#e<1)g=1
cls(0)for n=1,l do?k,8*n-3,-p,6
end?f\3,5,-c,6
?#e,5,-24,6
clip(0,p,v,j)?"\^c1"
for i=#e,1,-1do
o=e[i]if o.x\1==o.p\1then
if o.t\1>1then o.t-=1else o.x-=1for q in all(o.f)do q.x=o.x q.y=o.y s(u,q)end
end else o.x-=1if(o.x<v)o.y-=o.dy
end
?"โ",o.x-4,o.y-2,9
for n=#b,1,-1do
q=b[n]
if(a(q.x-o.x)<4and a(q.y-o.y)<4)o.hp-=1d(b,n)
end
if(o.hp<0or o.x<8)d(e,i)end
for n=#b,1,-1do q=b[n]q.x+=3?"โค",q.x-4,q.y-2,13
if(q.x>v)d(b,n)end
for n=#u,1,-1do
o=u[n]o.x+=o.dx o.y+=o.dy?"โฝ",o.x-4,o.y-2,8
if(o.y<0)d(u,n)
if(a(o.x-x)<4and a(o.y-y)<4)d(u,n)h=10l-=1end
i=btn()x=m(4,x+(i&2)-2*(i&1),j)y=m(2,y+(i&8)/4-(i&4)/2,j)
if(i&c>0and f%6<1)s(b,{x=x,y=y})
if(h<1)i=6
if(h>0)i=3h-=1
?k,x-4,y-2,i
if(#e<1)?"victory!",j,p,6
flip()f+=1if(g<1)goto _
::k::goto k
Leave a comment
Log in with itch.io to leave a comment.
Comments
Nice little shooter!
Such a cool little shoot-em-up!
So glad I could hold z to get auto-fire ๐
(Still only managed 440 tho)
Nice one! ๐
(BTW - Love the pre-load title screen & game name! ๐๐ก)