Log In  

srviv

Wield your blessed golden chakram against the oncoming vampire bat horde! Survive and take out as many as you can!

Survivors-type made in under 500 chars for tweettweetjam9. Check it out on itch.io

Cart #srviv-0 | 2024-05-13 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

Reload the page to try again. I ran out of characters for a more elegant ending.

Code below...

l=128x=64y=64c=0v=0p=0m=64n=64z={}r=rnd β˜…=sin 🐱=cos …=atan2 πŸ…ΎοΈ=circ
::β˜‰::c=x-64v=y-64camera(c,v)
for i=0,l do πŸ…ΎοΈ(c+(i*i-c)%l,v+(i-v)%l,0,i%6)end?"웃",x-3,y-2,6
u=r()if(u<.1)add(z,{x=x+l*🐱(l*u),y=y+l*β˜…(l*u)})
b=btn()if(b>0)q=…(b\2%2-b%2,b\8%2-b\4%2)m=🐱(q)n=β˜…(q)x+=m y+=n m=x+m*6n=y+n*6
πŸ…ΎοΈ(m,n,3,9)?""
?p
for e in all(z)do
❎,β–€=x-e.x,y-e.y
a=…(❎,β–€)u=t()/l+r(β–ˆ)e.x+=u*🐱(a)e.y+=u*β˜…(a)?"Λ‡",e.x-3,e.y-2,0
if((❎/5.1)^2+(β–€/5.1)^2<1)stop()
if(((m-e.x)/5)^2+((n-e.y)/5)^2<1)del(z,e)p+=1
end?"⁢1⁢c3",0,0
goto β˜‰--koz

P#148341 2024-05-13 03:39 ( Edited 2024-05-13 03:44)


[Please log in to post a comment]