NOGDUS $1670.00 has been donated to NOGDUS!
July 20, 2017, 11:40:27 PM *
Welcome, Guest. Please login or register.

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

Respect: 3425
« 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.

Download

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.
 Cool
Logged

WhoNeedszzz
Offline Offline

Respect: 3
« 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.
Logged

MJC
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
.: Theme by Richard Marks :.
Valid XHTML 1.0! Valid CSS!