Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
A jam submission

Fishin' 500View game page

Little fishing game in under 500 character of source code
Submitted by AndyMakes — 5 days, 5 hours before the deadline
Add to collection

Play game

Fishin' 500's itch.io page

Character Count
495

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

Submitted

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!)

Developer(+1)

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...

Developer(+1)

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!

Submitted

Really cute!

Developer

Thanks!

Submitted

fun game! a scoring system would be awesome though

Developer

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.

Submitted (4 edits) (+1)

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 _

Submitted

And can draw a fish alike with:

?"hᵇG"x+2,y+4,c
(G=bubble icon)

Instead of

circ(x,y,1,7)l(11,29,20,20)l(x,min(40,y),5)l(x,y)

I just added the +2 +4 as a first pass, so they might not be accurate.

Developer(+1)

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!