Skip to main content

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

1K Tentacled Monsters #Pico1kView game page

Defeat those tentacled monsters! A game in 1024 Compressed Bytes of code for PICO-1K Jam 2026
Submitted by SkyBerron (@SkyBerron) — 25 days, 6 hours before the deadline
Add to collection

Play game

1K Tentacled Monsters #Pico1k's itch.io page

Compressed Bytes used
1024

Source Code (OPTIONAL)
function fn(x,y,r,c)for i=1,r*2do
e=rnd()f=rnd(r)add(m,{x=x+f*cos(e),y=y+f*sin(e),u=rnd(4)-2,v=rnd(4)-2,l=r+rnd(r),c=c})end
end
_set_fps(60)h=0ll=0::s::x=32y=64r=0s=0g=0n=1l=-1kk=0p={}m={}?"\as8i0edc"
::_::cls(1)
if(g>0and l<0and #t<1)g=0fn(u,v,16,n+6)?"\as8i6c"
if(g<1)g=1n+=1u=150v=64l=90w=0k=160t={}
k-=1if l>0and k<0and #t<n do
a=atan2(x-u,y-v)
if(g<2and n<5)a=(1-#t*(n-1))/n
b=16*cos(a)c=16*sin(a)
k=360j={}for i=1,10do
j[i]={x=b,y=c,l=40,a=a,d=0,k=0}a=0
end
add(t,j)end
for q in all(m)do
q.x+=q.u
q.y+=q.v
pset(q.x,q.y,q.c)
q.l-=1if(q.l<0)del(m,q)
end
for j in all(t)do
i=1for o in all(j)do
if i<2do
z=o
a=o.a
b=u+o.x
c=v+o.y
d=.0001else
a+=o.a
b+=o.d*cos(a)c+=o.d*sin(a)
d*=1.3o.d=min(8,.04+o.d)o.a+=mid(-d,d,(.5+atan2(x-b,y-c)-a)%1-.5)
end
circfill(b,c,6,(z.k<0and 4or 9)+i%2)
for q in all(p)do
e=(b-q.x)/6
f=(c-q.y)/6
if(e*e+f*f<1)z.k=15z.l-=1del(p,q)fn(q.x,q.y,4,12)
end
e=(b-x)/9
f=(c-y)/9
if(e*e+f*f<1)g=3
if(l<0or z.l<0)del(j,o)fn(b,c,6,4+i%2)
i+=1end
z.k-=1
if(#j<1)g=2s+=10del(t,j)?"\as8i6c"
end
kk-=1
circfill(u,v,16,kk<0and n+6or 6)
a=atan2(x-u,y-v)b=2*cos(a)c=2*sin(a)
ovalfill(u-9,v-8,u-1,v+2,7)
ovalfill(u+9,v-8,u+1,v+2,7)
circfill(u-5+b,v-3+c,2,0)
circfill(u+5+b,v-3+c,2,0)
for q in all(p)do
b=2*cos(q.a)c=2*sin(q.a)
q.x+=b
q.y+=c
line(q.x-b,q.y-c,q.x+b,q.y+c,12)
e=(u-q.x)/16
f=(v-q.y)/16
if(e*e+f*f<1)kk=15l-=1s+=1del(p,q)fn(q.x,q.y,4,12)
q.l-=1if(q.l<0)del(p,q)
end
e=(u-x)/19
f=(v-y)/19
if(e*e+f*f<1)g=3
x=mid(3,125,x+btn()\2%2-btn()%2)y=mid(3,125,y+btn()\8%2-btn()\4%2)
r-=1if(btn(4)and r<0)r=10for i=1,3do add(p,{x=x,y=y,a=i/3,l=80})end?"\as4c"
if(w==0)u-=.1if(u<80)w=n/1000+.1
if(w>0)a=atan2(x-u,y-v)u+=w*cos(a)v+=w*sin(a)
?"s:"..s,1,1,6
?"l:"..ll
?"h:"..h
rectfill(32,1,32+l,2,11)
?"➡️",x-3,y-2,10
if(g>2)ll=s h=max(s,h)goto s
flip()goto _

Leave a comment

Log in with itch.io to leave a comment.

Comments

Submitted

Excellent boss battle :)

DeveloperSubmitted(+1)

Thanks! I was experimenting with chains and got to something that could be used to make tentacles.