Play demake
Splat1k's itch.io pageCompressed Bytes used
924
Source Code (OPTIONAL)
poke(0x5f2c,3)
function _a(x,y)
return pget(x,y+64)==0
end
function _b(o)
my=1/(f\9+1)
mx=o[3] or dx*my
my=o[4] or dy*my
if(_a(o[1]+dx,o[2]+dy)) then
o[1]+=mx
o[2]+=my
return false
end
return true
end
::r::
p=_c and rnd(6)\1*4+1 or 0
?"\^!5f11" ..sub("๐98<์๐<9>โฌ
๏ธ;โโฌ
๏ธ>83๐ฑ:9โ:๐ฑโช4",p,p+4)
cls()
rect(0,64,63,127,4)
rect(1,65,62,126)
if(_c) then
?"\^w\^t\^x3\^y5 __ ___\n____ l__\n _____\n ___ _\n :) l __\vใโ_\aszx5e2de",2,67
else
?"\^w\^tsplat1k",5,69
?"arrov\-evs to n\-enove\nz to spray ink\nx to restart",3,108
end
dx=0
dy=1
p={}
s={31,13}
z=true
::_::
rectfill(0,0,63,63,1)
b=btn()
f=b&16
if(b&15>0) then
dx=(b&2)/2-(b&1)
dy=(b&8)/8-(b&4)/4
if(dx!=0and dy!=0)dx*=.7dy*=.7
_b(s)
end
if(f>0) add(p,{s[1],s[2],dx+rnd(.6)-.3,dy+rnd(.6)-.3,a+rnd(.3)}) ?"\ac1e",0,0
for i in all(p) do
b=_b(i)
clip(1,1,62,62)
circfill(i[1],i[2],1,2)
clip(65,1,62,62)
if(i[5]<a or b) circfill(i[1]+64,i[2],1) del(p,i)
clip()
end
poke(0x5f54,96)
spr(128,64,0,8,8)
spr(8,0,0,8,8)
poke(0x5f54,0)
pset(s[1],s[2],3)
::g::
a=t()
if(btnp(5)) _c=a+20 goto r
if(_c)then
b=_c-a
if(b==6) ?"\asdx5e2ded"
if(b==0) ?"\asrx5d2eede"
if(b<0) then
l=0
p=0
for i=64,127do
for j=0,63do
c=pget(i,j)
if(c==2)p+=1
if(c!=6)l+=1
end
end
p*=sin(max(b/8,-.25))
z=p/l
fillp(โ\1)
rectfill(3,60,60,56,20)
fillp()
rect(3,60,60,56,4)
rectfill(4,59,4+z*55,57,2)
?"\#1" .. p\1 .."๐ช๐ฏ๐ฌ " .. z\.001/10 .."%",3,50
goto g
end
?b\1,52,55,1
end
flip()
goto _
Leave a comment
Log in with itch.io to leave a comment.
Comments
This is neat.
While I've not played the original, I have seen it (think on that recent mini-reboot of GamesMaster? ๐ค)
The paint "feels" just right - especially considering the lower res (which was a good call IMHO!)
Love the use of alternative, fun colour schemes too.
Nice one! ๐
PS. - I'm totally gonna use that "Demake" noun in Itch.io now! ๐