Demons And Dumplings
What to do:
- Eat Delicious Dumplings
- Avoid Demonic Demons
- Don't starve to death
- The world wraps around itself!
Controls:
- Left/Right/Up/Down - move around
- Ctrl + R - restart
- P / Enter - PICO-8 menu
What is this:
- An entry to TweetTweetJam 7
- Made with PICO-8
- 548 characters of code (556 bytes)
- p=64r=rnd
j=128e={}c=r(j)d=r(j)t=0n=5m=9q=64s=sqrt
b=btn::_::flip()?"dead",0,6
if(m<0)goto _
cls()while n>0do
if(r(2)\1>0)x=j*(r(2)\1)y=r(j)else x=r(j)y=j*(r(2)\1)
add(e,{x=x,y=y,u=r(1)-r(2),v=r(1)-r(2)})n-=1end?"●",c,d,9
if(s((c-p)^2+(d-q)^2)<6)c=r(j)d=r(j)m+=5
for w in all(e)do?"☉",w.x,w.y,8
if(s((p-w.x)^2+(q-w.y)^2)<6)m=-1
w.x=(w.x+w.u)%j
w.y=(w.y+w.v)%j
if(r(j)\1<1)w.u=r(1)-r(2)w.v=r(1)-r(2)end?"웃",p,q,7
x=0y=0if(b(0))p=(p-1)%j
if(b(1))p=(p+1)%j
if(b(2))q=(q-1)%j
if(b(3))q=(q+1)%j
t+=1if(t%j<1and#e<50)n=1
if(t%20<1)m-=1
?"●"..m,0,0
goto _
Leave a comment
Log in with itch.io to leave a comment.