Skip to main content

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

1K Spooky Arena #Pico1kView game page

Get rid of those spooky creatures! A game in 1024 Compressed Bytes of code for PICO-1K Jam 2026
Submitted by SkyBerron (@SkyBerron) — 24 days, 18 hours before the deadline
Add to collection

Play game

1K Spooky Arena #Pico1k's itch.io page

Compressed Bytes used
1024

Source Code (OPTIONAL)
_set_fps(60)h=0::r::s=0p={}w={}z={}x=128y=128u=1v=0r=0j=0k=0l=0o=1
for i=1,200do
z[i]={x=rnd(256),y=rnd(256)}end
::s::g=.6-o*.05n=o*16e=0t=128m="level "..o?"\asac.cdddd"
::_::f=""cls(1)camera(mid(128,x-64),mid(128,y-64))for q in all(z)do
?"░",q.x,q.y,5
end
rect(4,4,252,252,10)if t<0do
b=btn()\2%2-btn()%2c=btn()\8%2-btn()\4%2x=mid(10,246,x+b)y=mid(10,246,y+c)if(b|c!=0)u=b v=c
l-=1r-=1if(r<0)r=l>0and 8or 20add(w,{x=x,y=y,a=atan2(u,v),r=4})
k-=1if(k<0and n-e>0)k=g*60e+=1a=rnd()add(p,{j=0,x=x+99*cos(a),y=y+99*sin(a),a=rnd(.3)-.15,l=3,k=0,m=0,t=0})
if(#p-e<3)j-=1if(j<0)j=1024add(p,{j=1,x=rnd(240)+8,y=rnd(240)+8})
end
?"\^:0070f88c540488fc\^:040e0e0505050405\n\^:aadaf8dc00000000\^:0604040100000000",x-6,y-6,6
for t in all(w)do
t.r+=2line()for i=-4,4do
a=t.a+i/64line(t.x+t.r*cos(a),t.y+t.r*sin(a),10)end
for q in all(p)do
b=(q.x-t.x)/9c=(q.y-t.y)/9d=t.r/9
if(q.j<1and abs(b*b+c*c-d*d)<2and(atan2(b,c)-t.a+.125)%1<.25)q.m=1
end
if(t.r>64)del(w,t)
end
for q in all(p)do
if q.j<1do
if t<0do
q.t+=1b=.4+o*.02a=q.a+atan2(x-q.x,y-q.y)q.x+=b*cos(a)q.y+=b*sin(a)
if(max(abs(q.x-x),abs(q.y-y))<7)t=128m="game over"
q.k-=1if(q.k<0and q.m>0)f="\as4i5c"q.k=10q.l-=q.m
q.m=0if(q.l<1)del(p,q)f="\as4edc"e-=1n-=1g+=.002s+=1
end
?({"\^:0f0b08e4545cf8a8\^:1e1a020405070302\n\^:0818f00000000000\^:0203010000000000","\^:000f0b08e4545cf8\^:001e1a0204050703\n\^:a818f00000000000\^:0203010000000000"})[1+q.t\8%2],q.x-6,q.y-6,7+q.l
else
if(max(abs(q.x-x),abs(q.y-y))<6)l=512del(p,q)
?"\^wp",q.x-3,q.y-2,12
end
end
camera()
?"s:"..s,8,8,6
?"h:"..h..f
t-=1if(t>0)?"\^w\^t"..m,64-4*#m,32
if(t<0and m=="game over")h=max(s,h)goto r
if(n<=0and e<=0)o+=1goto s
flip()goto _

Leave a comment

Log in with itch.io to leave a comment.

Comments

Submitted

Lovely stuff :)

DeveloperSubmitted(+1)

Thanks! Graphics for the player and enemies were the last adition, using the remaining few bytes before hitting the 1024 bytes limit.