The objective was to develop a simple game of foosball using
openGL primitives and graphical enhancements. The game uses the
visual appeal of openGL to make it look and feel realistic.
An equal emphasis is given to the physics aspect of the game.
It uses a vector math for collision dection and response.
More specifically using the current velocity vector and position
of the ball and location of the planes and players the new
position in the next time step is calculated. Within a time step
one or more collisions may occur. In such a case the new location
and velocity is calculated at the next time stamp after all the
collisions occur.
As seen the program uses texture mapping and alpha blending to
create visual effects for the game. The conrols are a,d for the
swing and w,s for translational motion. the arrow keys navigate
the camera position. r releases the ball after a goal. use 1 to
6 to choose the rod to play. z ,x for zoom in zoom out.
In this first version the user control is rather primitve
but i hope to work on it.
| First image: |
| Second image: |