Play game
Tiny TV Snake's itch.io pageCharacters/Bytes used
997 Characters used
Source Code
memset(0,238,2048)p={1,14,13,6,5,7}n=rnd
k=0for i=1,254do v=ord("โฆ&โ'โ'โ'โ'โ'โ'โ.v5&์โ'โ'โ'โ'โ'โ.)r.&'p.โ'โ'โ'โ'โ'โ.)r.&'p.ใฒใฒใฒ-.)r.&'p.โ'โ'โ'โ'โ'โ.)r.&'p.ใฒใฒใฒ-.)r.&'p.โ'โ'โ'โ'โ'โ.)r.&'p.ใฒใฒใฒ-.)r.&'p.โ'โ'โ'โ'โ'โ.)r.&'p.โ'โ'โ'โ'โ'โ.)r.&'p.โ&โ&โ&โ&โโ.)r.&'p.%โ,โ,โ,โ,โ%โ.)r.&'p.%โ,โ,โ,โ,โ%โ5r.&'p.%โ,โ,โ,โ%ใณโ&์โ'โ'โ'โ'&ใณใณใณใณใ",i)-35for j=0,v\7do sset(k%128,k\128,p[v%7])k+=1end end
m=.3r=0w=7.5t=0h=6d=0p={4,4}sset(18+n(12),2+n(12),8)c=cos
s=sin::_::t+=1b=btn()q=b\2%2-b%2e=b\8%2-b\4%2f=sset
if(q!=0or e!=0)d=atan2(q,-e)&.75
b=p[2]+s(d)a=p[1]+c(d)o=sget(18+a,2+b)
if(o==11or a>12or a<-1or b>12or b<-1)stop()
if(o==8and t%9==1)h+=2f(18+n(12),2+n(12),8)
if(t%9==1)add(p,b,1)add(p,a,1)
f(18+p[1],2+p[2],11)
if(#p>h)f(18+deli(p,#p-1),2+deli(p,#p),0)
m-=(m-.3)/8r-=r/4cls(14)camera(-64,-96)r+=q/64m+=e/28g=c(r)i=s(r)u=sgn(i)for z=0,15do
for x=w-w*u,w+w*u,u do
for y=8,0,-1do
o=sget(x+y%8*16,z+y\8*16)
if(o!=14)j,k=x*4-32,y*4-32j,k=j*g+k*i,j*i-k*g k=k*m-z*4rectfill(j-2,k-2,j+2,k+2,o)
end
end
end
flip()goto _
Leave a comment
Log in with itch.io to leave a comment.
Comments
I would be very surprised if it were possible to fix this within the code limit, but while I was playing an egg spawned in the middle of the snake, which caused it to get eaten a moment later but not spawn another egg.
This is super cute, I love it.
Wow. This is awesome - looks and plays great! ๐ฎ
Well done for squeezing it all in. ๐
Side-note:
Tiny TV Jam was the first game jam I ever entered
...and PICO-1K is the first game jam I've ever hosted!
So, this is a special "coming full circle" moment for me - thank you! ๐