Page 1 of 1

Rong - Round Pong

Posted: Tue Feb 21, 2017 4:52 am
by bgordebak
Rong is a single player Pong variant, which I guess is not a very original idea. I just wanted to try circular collision detection. Made this game for MiniLD #72. If the ball moves in the blue area, game over.

Update: Added sound.

Update 2: Small bugfix. The ball used to gain speed if you waited some time before starting the game. Fixed.

Update 3: Starting speed is a bit more random without ball going directly into the blue zone.

Controls:
Space: Start game
Esc: Quit
Right-Left: Movement

Enjoy!

Re: Rong - Round Pong

Posted: Wed Feb 22, 2017 10:45 pm
by bgordebak
Update: Added sound.

Re: Rong - Round Pong

Posted: Thu Feb 23, 2017 7:12 pm
by bgordebak
Small bugfix. The ball used to gain speed if you waited some time before starting the game. Fixed.

Re: Rong - Round Pong

Posted: Thu Feb 23, 2017 9:54 pm
by bgordebak
Starting speed is a bit more random without ball going directly into the blue zone.

Re: Rong - Round Pong

Posted: Sun Feb 11, 2018 12:53 am
by pgimeno
Great game, I love the idea! I wasn't too happy with the collision model, though, so I grabbed it and made it differently, hope you don't mind. Here's the result.

I'll be honest: the code was not very comfortable to work with. It could do with some refactoring, localizing of variables and removal of magic numbers. Guess that's fairly usual with jams. Still, nice job.

There's even more room for improvement. I had the idea of letting the ball spin, making the collisions have perfect friction (or a certain percentage of perfect friction), so that e.g. if the ball is spinning and it hits a wall, it might bounce in an unexpected direction. Another idea is to deflect the ball differently based on how far from the centre of the paddle it hits, as if the paddle had additional curvature (some regular Pong games do something similar). But I wasn't brave enough to implement any of that :)

Edit: Forgot to trigger the collision sound effect when it hits the corner of the paddle. Fixed now.