Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
A jam submission

Pico8 Classic SnakeView game page

A code golfed version of classic snake programmed for pico8
Submitted by Ben Matthews โ€” 4 days, 10 hours before the deadline
Add to collection

Play game

Pico8 Classic Snake's itch.io page

Compressed Bytes used
282

Source Code (OPTIONAL)
n=127f=flr
s=pset
g=pget::a::cls()x=64y=64rect(0,0,n,n,6)d=2.5t={{x,y}}::b::while(true)do
z=f(rnd(n))w=f(rnd(n))if(g(z,w)==0)s(z,w,8)break
end::_::e=f(d/2)if(d!=2.5)s(x,y,6)
x+=(1-e)*(d*2-1)y+=e*(d*2-5)add(t,{x,y})c=g(x,y)if(c!=8)s(t[1][1],t[1][2],0)deli(t,1)
if(c==8)goto b
if(c==6)goto a
s(x,y,7)for i=0,3 do if(btnp(i)and f(i/2)!=e) d=i end
flip()goto _

Leave a comment

Log in with itch.io to leave a comment.

Comments

HostSubmitted (1 edit) (+1)

I love how minimal this is.
Don't think I've seen a snake game where you start from 0 before, but it makes it very interesting.
Definitely a bravery test when going for dots by the border! 
Nice one ๐Ÿ‘

P.S. - Using the game to make the title... PRICELESS! ๐Ÿ˜๐Ÿ‘Œ

Developer

Thanks!