Sign in to follow this  
c0uchm0nster

Pong code review

Recommended Posts

c0uchm0nster    182
I've been meaning to put my pong game code up here for review for a few weeks now but kept getting side-tracked. It's my first graphical game, first real game of any kind actually, my first time using sdl, etc. It uses a singleton class structure, and is otherwise fairly basic. Whatever suggestions people can provide on any or all parts (even if it's not code related - use of comments in code for example) are greatly appreciated. The game requires SDL and SDL_image. The code is cross-platform, compiled and tested on Windows XP Pro and gentoo linux 2.6.12. Game executable and graphic resources: http://www.jesseolmer.com/cmPong.zip (81kb) Game source (*nix and windows): http://www.jesseolmer.com/cmPongSource.zip (12kb) Source package includes VC++ 2k5 Express solution and generic Makefile. Makefile install creates an executable in the current directory. Make clean removes all temporary files and uninstalls (deletes) the executable. The VC8 CRT if you need it: http://www.jesseolmer.com/vccrt.msi (1.8m) - I haven't tested installing this personally, but it should work fine if you need it. I'd like to thank lazyfoo for his/her? great sdl tutorials which helped me get started. http://lazyfooproductions.com/SDL_tutorials/index.php and Aaron Cox, who's pong ai code I heavily based mine off of. http://www.aaroncox.net/tutorials/arcade/PaddleBattle.html I'm considering creating an "easy" skill level which would slow down the ai paddle a bit (currently both paddles speed's are equal to the ball's max horizontal speed, which creates only 2 situations where you can score on the ai - albeit they happen often enough at the moment).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this