SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Sponsored Links

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

This is Corey's Pong! :]

Available @ http://diablo2.myvnc.com/cpong/ Comments & Suggestions: hollaway@gmail.com


CONTROLS
For Player 1,
'a' for UP
'z' for DOWN

For Player 2,
'UP-ARROW' for UP
'DOWN-ARROW' for DOWN

Global Controls,
'p' for PAUSE
'ENTER/RETURN' for START/UNPAUSE


TO PLAY
On Linux:
`./cpong`

On Windows:
double-click on cpong.exe :]


ANATOMY OF GAME
The paddle is split into five sections. -If you hit the ball on the very top part of the paddle, the ball receives a speed boost.
-If you hit the ball at top middle part of the paddle, the ball goes back to normal speed.
-If you hit the ball in the middle, the ball gets a speed boost, and goes in a horizontal direction. -If you hit the ball at the bottom middle part of the paddle, the ball goes back to normal speed.
-If you hit the ball at the very bottom of the paddle, the ball receives a speed boost.

This is the paddle:

{---}
[\\\]
[|||]
[///]
{---}

{---} If ball hits here...Ball boost, makes ball go UP [\\\] Ball speed reset
[|||] Ball boost, makes ball direction horizontal [///] Ball speed reset
{---} Ball boost, makes ball go DOWN


ARE YOU USING THIS CODE
Then feel free to do anything you want to it! It's on me.


Sponsored Links

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.