back


pong2k1 (windows)


  • description


  • OpenGL based pong game for 2 players (1 vs 1). The player kicks a little ball and win when his opponent is unabled to throw it back. Very simple to play, you can also give effects to the ball such as speed increase/decrease and rebounds change...


  • features


  • The display uses OpenGL to render the scene. Not many visual effects at the moment. The players' moves use DirectInput and the sound play back is made in DirectSound, tho it's the first time I use DirectX technology.. I also use a timer to (try?) give constant speed to the game whatever the PC performance, working in addition with a maxfps value. The game generates a log file so check it to ensure everything goes ok when loading :) The log remembers the value for each initialization and write it immediatly so when the program crashes you can see where the log ended. I use a little code for glvelocity to detect some CPU features such as MMX extensions, CPU speed in MHz.. and I wrote a function to check for the OS installed. This is some weird thing coz I do not use the values returned, but just log'em.. Of course the language is C/C++ using classes and structs but I need to fix them (public/private non coherent =/)



  • version


  • Current version is 0.7a. It is a full version, runnable and pretty stable under my win2000 system (Celeron400-geforceSDR-192RAM) However there are still many bugs in the DirectSound class for audio play back, and you may suffer some problems using it, tho I'm not but I'm sure my code is ugly so beware ;-) Don't pay attention to gfx, I know they are ugly and I need to work on'em ..


  • credits


  • I beginned to learn OpenGL with NeHe and Nate Miller sites so special thx to them for making such amazing programs and tutorials. Some part of the code is directly inspired from them tho I changed many things to suit my point of view. The DirectX stuffs were inspired from the DirectX7 SDK.


  • downloads (v0.7a)


    1. program full source (MSVC6) + data : pong2k1 source (1.2Mbytes)


    2. program full binary + data : pong2k1 binary (1.2Mbytes)