Pong in C Programming
Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 15652
Total Votes: 152 votes
Category: C and C++/Game Programming
Submitted on: 2008-04-16 02:07:20
Submitted By: Shekhar
Description:Here is my basic overview of Pong. Each moving entity on the screen (including the ball, player1 and the computer) each have their own X and Y value. This is to help control which position the object is drawn.
I’ve created a structure for the ball, player1 and the computer. Player1 and the computer contains the standard x and y values, but also contains the score etc. More detail...