splatoon, in 486 characters of code. (less than 2 tweets!)

disclaimer: I have not played splatoon and have no idea how it works. something about paint?

controls:

  • move: arrow keys
  • restart: ctrl-r
  • pause: p / enter

code:

u=0v=0y=64x=y
e=128h=rnd
cls()pal({135,138,3,12,140,141,137},1)f=circfill
for i=1,6do
f(h(e),h(e),24,i)end::_::c={[0]=0,0,0,0,0,0,0,0}for i=0,7679do
p=@(25088+i)c[p&7]+=1c[p>>4&7]+=1end
for i=0,350do
q=h(e)r=h(120)+8s=pget(q,r)
if(s%7>0)f(q,r,max(1,3-c[s]/650),s)
end
b=btn()u+=b\2%2-b%2<<2v+=b\8%2-b\4%2<<2u*=.5v*=.5x=mid(e,x+u)y=mid(8,e,y+v)f(x,y,7,7)circ(x,y,1,0)m=0for i=0,7do
n=c[i]/120rectfill(m,0,m+n,7,i)m+=n
end::w::flip()
if(c[7]<15356)goto _
?"you monster",42,61,t()%6
goto w

Comments

Log in with itch.io to leave a comment.

(10 edits) (+2)

Four metagaming proposals :

Supremacy: erase all other colors

spoilerin fact it seems to be the expected way to play the game:

Division : have all colors in game without them being in contact.

Celular automaton : watch the algorithm evolve without intervening.

Painting : make a painting.

(2 edits) (+2)

omg yes I love these :D

Is that an original painting or a recreation/reference to something? it’d fit right in with these: https://www.wikiart.org/en/mark-rothko :)

A lakeside cabin:

lakeside cabin

Another mode:

Sorting : sort the colors into a gradient

sorted colors

(+1)

Nice ! The gradient is impressive !

The painting from my comment is an “original painting” (not a rothko reference). This is a sunset scene with the sky turning dark and you can see small trees and houses at the bottom :)

oh! your painting gave me a sunset vibe but I didn’t realize how zoomed out it was – it’s so lovely!

(+2)

love how they struggle before they die :)