Play game
SplatBattle 1K's itch.io pageCompressed Bytes used
1018
Source Code (OPTIONAL)
b=1::n::cls(7)s={}d=rnd(128)e=rnd(128)i=flr(rnd(2))o="?"r=0j=0k=0q=100v=30t=v g=1h=0w=time()?"β·sacdcecg"
x={}π¨={9,11,12,14,15,10,13}for n=0,(b-1)do y=rnd(128)z=rnd(128)add(x,{d=y,f=z,h=y,s=z,o=rnd(360),i=1,e=4,t=30,c=.53,a=π¨[n+1]})end function π©()o="?"r=0if(i==0)o="β¬οΈ"r=3
if(i==1)o="β¬οΈ"r=2
if(i==2)o="β₯"r=3
if(i==3)o="β"r=2
end function πͺ()π©()?o,d,e+1,0
?o,d,e,r
end function m()?o,d,e+1,7
?o,d,e,7
end function π«()s={}for n=5,127do for f=0,127do l=pget(f,n)if l>7then if(not s[l])s[l]=0
s[l]+=1end end end end f=64n=64π’=f π£=n u=0a=1c=4π€=10π₯=0p=0π¦=0::f::circfill(f,n,c,8)pset(π’,π£,8)pset(f,n,7)line(f,n,f+sin(u/360)*c,n+cos(u/360)*c)if(btn(β¬
οΈ))u-=π€*a
if(btn(β‘οΈ))u+=π€*a
if(time()-w>=1)π«()
k+=1if k>q then k=0q=50+rnd(200)i=flr(rnd(4))?"β·c2e2d2"
end if abs(f-d)<c*2and abs(n-e)<c*2then if(i==0)a+=.1?"β·s9ce"
if(i==1)a-=.2a=max(.5,a)?"β·s9c2c2"
if(i==2)c+=1?"β·s9ce"
if(i==3)c-=2c=max(1,c)?"β·s9c2c2"
m()d=rnd(128)e=rnd(128)i=flr(rnd(4))end π¬=f+sin(u/360)*a π=n+cos(u/360)*a π’=f π£=n if(g+h==0)f=π¬ n=π
f=f%128n=n%128n=max(5,n)m()if(g+h==0)d=(d+sin(j/360)*.2)%128e=(e+cos(j/360)*.2)%128
e=max(5,e)j+=flr(rnd(5))π₯+=1if(g+h==0and π₯%3==0)?"β·c0",0,0
πͺ()for f,n in pairs(x)do circfill(n.d,n.f,n.e,n.a)pset(n.h,n.s,n.a)if(rnd(n.c)>.5)n.o-=n.t*n.i
if(rnd(n.c)>.5)n.o+=n.t*n.i
if(g+h==0)n.d=n.d+sin(n.o/360)*n.i n.f=n.f+cos(n.o/360)*n.i
n.d=n.d%128n.f=n.f%128n.f=max(5,n.f)if abs(n.d-d)<n.e*2and abs(n.f-e)<n.e*2then if(i==0)n.i+=.1
if(i==1)n.i-=.2n.i=max(.5,n.i)
if(i==2)n.e+=1
if(i==3)n.e-=2n.e=max(1,n.e)
m()d=rnd(128)e=rnd(128)i=flr(rnd(4))end end rectfill(0,0,127,4,0)π§=0for n,f in pairs(s)do?flr(f/15744*100).."%",π§,0,n
π§+=16end?t,120,0,7
?b,96,0,14
if h==0and time()-w>=1then t-=1if(t==v-1)g=0
if t==0then h=1for f,n in pairs(s)do if(n>π¦)π¦=n p=f
end if(p==8)b+=1?"win",64,64,0
if(p~=8)?"lose",64,64,0
end w=time()end if h==1then if(time()-w>3)goto n
end flip()goto f
Leave a comment
Log in with itch.io to leave a comment.
Comments
Love the idea, well done !
Had a lot of fun playing this one. Doesnβt feel like a 1k game, isnβt really lacking anywhere!
Great job.
Oh, this one is addicting! I played until I had trouble seeing because of all the black opponents, a sign of a very good game. Nice! It has this very addicting one more round feel to it.
Not gonna lie, but I think this is one of the most coolest Pico1K entries we've ever had.
Particularly your use of progressive opponent AI's to add to level difficulty.
It all just works (+plays) really well. Congrats on a great entry! π