Monday, April 6, 2015

Ping Pong Balls - A Game

This is a game under development. One ping pong ball to start with just moves around the screen and collides with the walls. There is a tile at the bottom controlled by the mouse and when the tile is right below the ball it bounces. If there is no tile the ball should fall down and lives get decremented(supposed to but it does not do that as yet). This is left as an exercise. One more thing is the program has been created to have multiple ping pong balls each with different colors. This is as assignment. Show this as your CG lab project but after making it work. The worst part of this game is the ping pong ball moves in a fixed path. You need to modify it to move in different directions.

Snapshots till now:



Here is the source.... pp.c and scanconvertcircle.c
The speciality of this game is that i have modified code to scan convert a circle into filling the circle using scan line area filling. It is simple modification and i took only two hours to develop this game.

Here is another version of the same game in Java OpenGL.

3 comments: