Log In  

Cart #snake1999-1 | 2024-05-19 | Code ▽ | Embed ▽ | No License
4

This is a version of the Snake game that came on old Nokia phones, complete with simulated phone bezel and greenscale display. To fit within the 500 character jam limit, I had to change a couple mechanics to save space, which made it play a bit more like the later Snake II, so I guess you could think of this as a a late 90's missing link. The name's also a reference to an awesomely funky 70's sci-fi show. https://www.imdb.com/title/tt0072564/ Hope you enjoy playing it!

Controls

Dpad----Move

Menu----Restart

Sourcecode:

c={}n=5k=20h=9p=85::_::o=ovalfill?"⁶1⁶c6⁶!5f10+⬅️5✽●6⌂3"
for j=0,1do
for i=1,#c do
z=i%4if(btn(z))➡️=(z+(z+1)%3)/4
camera(j,j)?"□⁶!5f34²",p%k*5+16,p\k*5+41,j*7
s=c[i]?'⁶x1█',s%k*5+15,s\k*5+41
rect(13,39,116,102)?n*5-25,16,32
if(█>0and s==h)█=0?"⁷e6"
if(s==p)p=rnd(240)\1n+=1?"⁷e5"
end end
if(⬅️%5<█)add(c,h)ˇ=(➡️-ˇ)^2!=.25and ➡️ or ˇ h=(h+sin(ˇ))%k+(h\k+cos(ˇ))%12*k
deli(c,#c\n)⬅️+=1for i=1,3do
rectfill(14-i,32-i,118,105,6143+i)end
for i=0,2do
o(4-i,-94-i,125+i,186+i,6147+i)o(33,122+i,94,140)end
goto _
P#148603 2024-05-18 23:33 ( Edited 2024-05-19 23:45)

@JadeLombax woah! It's awesome and hard to believe all of this is under 500 chars 👀 especially such polished rendering! ⭐
Sure I still ignore many of the tweetcart/minification tricks.. so I wonder why the colour code is so high? e.g. why 6147 instead of 3?

P#148746 2024-05-20 23:08
1

@Heracleum,
Thanks, I made a Tweetcart version of Snake a while ago, so that's how I had enough space left over for the Nokia skin. The shading is done through rendering shapes multiple times in loops and using P8SCII to poke color values to the palette. The high values are to take advantage of the recently-introduced inverse shape drawing feature (color parameter has to be >=6144), which made the bezel shapes possible.

P#148749 2024-05-21 00:48 ( Edited 2024-05-21 00:49)
1

Love this! Unfortunately it crashed my Mini Miyoo Plus for some reason until I removed it from the SD card.

P#148770 2024-05-21 13:32
1

@JadeLombax ahah true! I've even used it in my game (expressed in hex 0x1800) but yeah 6144 less chars definitely 👌

P#148829 2024-05-22 22:48

[Please log in to post a comment]