Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Wow as someone whose done some art stuff in p5, that is so sick to see you made this with it, seriously that's super impressive. Also always appreciate sound design done yourself! Lots of people seem to skip that for jams. Genuinely though really enjoyed this, having everything custom really paid off. I'm currently kinda trying to study and up my math skills so I'm curious what's the exact way you calculate the collision velocity and direction. Is it with the like normal direction of the wall or something? And are collisions detected by just checking pixels? Super well done!

So kind words. Thank you so much for your positive feedback. It motivates me to make more games and especially publish more. Especially with special physics I have made some creations but only for myself.

So, I can just send you a big Thanks!

And you asked for the collision: So, I used vector math and I check what’s the nearest point for the ball to a wall, one of the endpoints or a point on the line. You can do that with vector math or trigonometry. And when having the closest point then you can calculate the distance and see if the ball center is less than the radius away from the wall and the resolve the position first and then the velocity with an elasticity factor. Complex but nice.

For the physics and math it’s worth to work on it in detail and write the code more general, so you can use it in other projects with some changes and also you can adapt in for other programming languages.

Have a good time, let’s stay in contact and fun with the jam!

(+1)

Thanks so much! Super helpful to hear about the process :)

You’re very welcome. And if you have questions then you can always reach out for me or write a contact like email and I will write you there.

And thanks for following me back!