Play game
Fishin' 500's itch.io pageCharacter Count495
Game Code
q={}c=circfill
r=rnd::z::x=20y=20h=0v=0g=0m=0::_::cls(12)l=line
c(65,800,760,1)for i=30,45do
l(0,i,75-i,i,4+i%2)end
x+=h*g
y+=v*g
v+=g/9f=.88+sgn(40-y)/9h*=f
v*=f
if btnp()>0then
if(g<1)h=1+r()
g=1v-=1.5end
if(r()<.03)add(q,{x=-4,y=60+r(60),c=r(5)})
d=4for o in all(q)do
a=o.x
b=o.y
c(a,b,2,8+o.c)l(a-3,b-2,a-3,b+2)pset(a,b-1,1)o.x+=r()
if d>abs(a-x)+abs(b-y)then
o.x=x+1o.y=y
d=0end
if(b<40)del(q,o)end
m=max(m,y)c(x,y,1,7)l(11,29,20,20)l(x,min(40,y),5)l(x,y)
if(m>40and y<40)goto z
flip()goto _
Leave a comment
Log in with itch.io to leave a comment.



Comments
Wow, this is such a relaxing submission! 😊
Found myself fishing much longer than I expected.
You've managed to pack in so much here, it's really impressive.
Really solid entry, nice one! 👍
P.S. - Thx for the commented src
(I'm already bookmarking that tip for diamond collision detection!)
Thanks! I love diamond collision. In 99% of small colliders it feels basically identical to circle and it's so short.
I'm sure somebody will show me a slightly more compact approach someday but until then...
Thanks! I wish I didn't have to nix the score. As other comments have pointed out I might have been able to do it but I didn't have time to optimize as much as I would have liked.
I'm glad the commented code is appreciated it! I always like to make a little mini blog post out of it, if only so I can figure out what the code is doing two years from now!
Really cute!
Thanks!
fun game! a scoring system would be awesome though
Thanks! I had one for a while early on, but I wound up having to choose between having a score or having it look pretty.

This is pretty neat, I second the request for a scoring system. I looked over the code and managed to shrink it by around 40 chars by changing the drawing functions and using a couple shorthand methods, is that enough to let you add one?
q={}r=rnd::z::x=20y=20h=0v=0g=0m=0::_::l=line?'⁶1⁶cc'
memset(27136,17,⧗)for i=30,45do
l(0,i,75-i,i,4+i%2)end
x+=h*g
y+=v*g
v+=g/9f=.88+sgn(40-y)/9h*=f
v*=f
if btnp()>0do
if(g<1)h=1+r()
g=1v-=1.5end
if(r()<.03)add(q,{x=-4,y=60+r(60),c=r(5)})
d=4for o in all(q)do?'|³d●',o.x-4,o.y-2,o.c+8
o.x+=r()if d>abs(o.x-x)+abs(o.y-y)do
o.x=x+1o.y=y
d=0end
if(o.y<40)del(q,o)end
m=max(m,y)circ(x,y,1,7)l(11,29,20,20)l(x,min(40,y),5)l(x,y)
if(m>40and y<40)goto z
goto _
And can draw a fish alike with:
Instead of
I just added the +2 +4 as a first pass, so they might not be accurate.
I take it as high praise that you poured over my code like this!
TBH, this is a very busy week for me and I squeezed in 99% of the work my little fishing game when I had a free night. I definitely did not optimize it as much as I did with my entry from last year.
I won't have time to make edits before the jam ends, but I would love to see what you do with it. I give either of you (or anybody else for that matter) full permission to update it with a score or any other features you wish and submit the new version to the jam. Please just mention my name and link to the original if you do!