Skip to main content

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

S.N.A.K.E pico-8View game page

A fun snake game made in pico-8
Submitted by vashh — 5 days, 7 hours before the deadline
Add to collection

Play game

S.N.A.K.E pico-8's itch.io page

Character Count
483

Game Code
n={f=rnd(120),d=0,i=rnd(120),t=0,e=2}f={{f=64,i=64,e=1,a=7}}e={"s","n","a","k","e"}t=1::n::cls(0)i=1foreach(f,function(n)n.d=n.f n.t=n.i?e[n.e],n.f,n.i,n.a
if(i>1and t==3and btn()~=0)n.f=f[i-1].d+rnd(3)-1n.i=f[i-1].t+rnd(3)-1
i+=1end)t%=4t+=1if(btn(⬆️))f[1].i-=2
if(btn(⬇️))f[1].i+=2
if(btn(➡️))f[1].f+=2
if(btn(⬅️))f[1].f-=2
?"⁶t⁶w"..e[n.e],n.f,n.i
if(abs(f[1].f-n.f)<8and abs(f[1].i-n.i)<8)add(f,{f=n.f,d=0,i=n.i,d=0,e=n.e,a=rnd(15)+1})n.f=rnd(120)n.i=rnd(120)n.e%=5n.e+=1
flip()goto n

Leave a comment

Log in with itch.io to leave a comment.

Comments

Submitted

I like how you avoided a "game over" or "win" logic to just have infinite snake-snake-snake-snake :)
Cool use of different colors for letters to make it look interesting.

Submitted

I love the way the tail looks!