SFML community forums

General => SFML projects => Topic started by: klefmung on June 09, 2018, 04:26:01 pm

Title: critique my pong code?
Post by: klefmung on June 09, 2018, 04:26:01 pm
Hey guys, I am mostly self taught and have been improving my code by having it scrutinized on the internet. I've been doing a coding bootcamp for a few weeks now though, so I haven't had a chance to do any C++ or SFML for a while. Only ruby. This is my attempt to refresh my memory. This is the first one I needed any kind of physics for, so lets see what you think:

https://github.com/letsdothis64/Pong
Title: Re: critique my pong code?
Post by: FRex on June 12, 2018, 05:50:16 pm
It's quite okay. I couldn't test it because my screen is too small and changing the resolution constant breaks (?) the game.

There is some minor stuff like: