January 22, 2019, 04:45:36 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
   Home   Blogs Help Search Tags Login Register  
Pages: [1]   Go Down
Author Topic: A pong game made in 3 hours  (Read 2770 times)
0 Members and 1 Guest are viewing this topic.
Richard Marks

Respect: 3425
Offline Offline

Posts: 1027


« on: February 10, 2008, 08:33:16 AM »

Using C++ and Allegro, I challenged myself to write a pong game as fast as I could. And this is the result.


List of bugs I know of:
  • ball/paddle collision dodgy
  • ai is sporadic
  • no cpu timing implemented, so you may find it fast or slow

List of what its got:
  • Funky graphics
  • background music
  • sound effects
  • title, gameover, gameplay, paused, and unit testing states (see source)
  • really messy code that was rushed and poorly structured. I was writing a game, not a nice and neat reusable codebase.

Last but not least, do NOT use this code to learn how to make pong.
If you want to learn how, ask me, and I'll write an ORGANIZED and UNDERSTANDABLE piece of code for you to learn from.
If you have anything to say about this, say it here or on IRC.

Manager / Reaper

Respect: 3
Offline Offline

Posts: 98

Tap into the limitess supply of community!

« Reply #1 on: February 13, 2008, 05:34:48 PM »

Pretty good. I love the music/sound fx.  Grin Although I realized there is a speed increase problem with collision. I had the same problem with my version of pong in python/pygame. It should be  easy to fix though.

Pages: [1]   Go Up
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!