Play game
1K Among Fish #Pico1k's itch.io pageCompressed Bytes used
1022
Source Code (OPTIONAL)
_set_fps(60)h=0t={{7,7},{8,8},{10,8},{12,10},{16,16},{20,20},{24,24}}poke(24405,0)for i=0,63do v=ord("#2&##2:#$2:')/58(.4;)/5;$2:'#2&#",i\2+1)-35sset(i%8,i\8,v\5^(i%2)%5)end
for i=0,15do
x=i*8a=1+rnd(3)\1b=124+sin(i/8)*4\1rectfill(x,b,x+7,127,2)for j=1,a do
y=b-j*8rectfill(x+3,y,x+4,y+7)rectfill(x+2,y+1,x+5,y+4)end
end
poke(24405,96)::s::f=0p={{x=64,y=64,z=2,u=1,i=0,l=1}}n={2,2,2,2,2,2,2}s=0?"\asa.f.f.f.c4cc.f3.c4cc"
w={}for i=1,16do
w[i]={x=rnd(128),y=rnd(256),v=1-rnd(.5),a=rnd(),r=1+rnd(4),c=3+rnd(2)\1}end
pal({1,3,131,140,2,4,138,128,140,139,13,12,8,9,10},1)::_::cls(1)f+=.01for z in all(w)do
z.y-=z.v
circfill(z.x+8*sin(z.a+z.y/64),z.y,z.r,z.c)if(z.y<-8)z.x=rnd(128)z.y=144end
o=p[1]c=o.z\1for i=1,max(5,c+2)do
if(n[i]>0)n[i]-=1a=rnd(2)\1*2-1add(p,{x=rnd(64)+32-a*96,y=4+rnd(15)\1*8,z=i,u=a,v=a*(.2+rnd()),i=1,l=1})end
for q in all(p)do
r=t[q.z\1]if q.i<1then
b=btn()a=b\2%2-b%2q.x=mid(4,q.x+a,124)q.y=mid(4,q.y+b\8%2-b\4%2,116)
if(a!=0)q.u=a
else
q.x+=q.v
if 2*abs(q.x-o.x)<t[c][1]+r[1]and 2*abs(q.y-o.y)<t[c][2]+r[2]then
if(q.z>=c)h=max(s,h)cls(5)flip()goto s
o.z=min(o.z+.1,5)q.l=0s+=1?"\as8ceg"
end
if(q.u<0and q.x<-32)q.l=0
if(q.u>0and q.x>160)q.l=0
end
for i=1,4do
pal(i,4+(i+q.z\1)%4)end
sspr(0,0,8,8,q.x-q.u*r[1]/2,q.y-r[2]/2,q.u*r[1],r[2])for i=1,4do
pal(i,i)end
if(q.l<1)n[q.z]+=1del(p,q)
end?"\^w"..s.." "..h,3
spr(128,0,64,16,8)poke(24404,96)for i=0,7do
pal(i,i+8)end
for i=0,127do
c=8*sin(f/4)a=(i+c)\3b=min(128,32+2*(i+c))\1-a
sspr(a,i,b,1,a,i)end
for i=0,7do
pal(i,i)end
for i=0,127do
a=1.5*sin(f+i/32)if(a!=0)sspr(max(a),i,127-abs(a),1,max(-a),i)
end
poke(24404,0)flip()goto _
Leave a comment
Log in with itch.io to leave a comment.
Comments
It is so colorful, and water effect looks super. Really beautifully done!
I'm a big fan of these "eat the smaller fishes" games, and to see all the cool graphics effects in a 1k game really pushes this over the top. The fish themselves are fun, bright, and colorful.
Good job!
Wow, those are some nice graphics, very well done!
Thanks! I used your sprite encoder/decoder for the single 5 color 8x8 sprite that get scaled and color cycled depending on fish size. Very handy and compact code, so it doesn't compress well. I was thinking about going 16x16 2 color and add color banding in the decoder but the game was already working around this 5 color sprite.
Yeah, I recognized my sprite compression code there. Nice thing about that is I can just open a blank cart and replace sset with pset to see the raw sprite data. Beyond that, though, really nice use of color variation, particles, screen distortion, and lighting!
As for suggestions, I just wonder if you'd consider letting the player either eat fish the same size as them, or just pass through them unharmed. It was a bit surprising to find that touching the same size fish kills you.
Such a cute entry (+really addictive!)
Love the lighting effects - they work really well (bitplanes?)
The ripple looks great too!
Nice one ๐๐
I had the palette arranged for bitplanes with 8 colors followed by brighter versions of them, but I forgot to use bitplanes ๐คฆโโ๏ธ๐
After adding sprite decoding, I had a few compressed bytes in excess of the 1024 limit. I had lots of fun tweaking little changes to the code and watching the compressed byte counter go either up or down with same char count. ๐คช
The experimentation part does seem a bit daunting. It offers more potential space, but I've gotten so used to cutting down chars it seems I'll have some re-learning to do. Glad we have a month.๐