Play cart
Picolo Survivors's itch.io pageHow many characters of code did you use?
499
Include your code here, if you'd like to show it off!
x,y,t,e,s=63,63,0,{},0::z::s+=1function k(a,b,c,d)if(a\1==c\1and b\1==d\1)return 1end function g()f={}f.v=1f.w=1f.p=function(this)pset(this.v,this.w,8)end f.m=function(this)if(x<this.v)this.v-=.9
if(x>this.v)this.v+=.9
if(y<this.w)this.w-=.9
if(y>this.w)this.w+=.9end add(e,f)end foreach(e,function(f)if(k(x,y,f.v,f.w))stop(s)end)if(btn(0))x-=1
if(btn(1))x+=1
if(btn(2))y-=1
if(btn(3))y+=1
foreach(e,function(f)f:m()end)t+=1if(t==9)t=0g()
cls(2)pset(x,y,12)foreach(e,function(f)f:p()end)flip()goto z
Leave a comment
Log in with itch.io to leave a comment.
Comments
Interesting idea but it felt like I was just repeating the same path to collect all the little dots into one space over and over.
Yeah, dropping random enemy placement to cut a few characters didn't do game-play any favors. But thanks to your comment I just figured out how to put it back in.
VSCode was giving me a character count that was actually 8 chars to high, when I realized this while getting my submission ready at 3 am last night I added the score. Didn't even think of restoring random placement instead, but now I did and it puts the game at an even 500 characters and much improved game-play. So thanks for that and thanks for playing!