Pong With Source Code

Last month, the class project in Windows Programming 1 was to create some version of Pong that would allow the player(s) to perform basic file operations (creating a new file, saving, loading, etc.) in addition to a few other requirements. Having some friends that were familiar with C++ console programming, but interested in Win32 application development, I took the opportunity to make a “bare-bones” version of Pong that would be easy for them to follow as well as modify. After cleaning up the code and adding some comments, I feel my code is easy enough and pretty enough for other people to view and mess around with.

Pong

The game comes with the following features:

  • Single and Multiplayer game modes (via same keyboard)
  • Customizable ball, background, text and paddle colors
  • Frames Per Second, ball position and game resolution on-screen displays
  • AI that never misses
  • Fully functional file operations

I’m always looking for comments and critiques so feel free to leave me a comment or two telling me what you think about the game/source code. Without further adieu, here is Pong w/ Source Code.

Leave a Reply