CPE 471 Final Project: 3D Dodge Ball

3D dodge ball is a game I wrote to be a fun little time waster you could play against a friend.
It allows your avatar (a cone) to travel around a game board picking up balls and throwing them
in an attempt to hit the other player with them.

Game Objective

To score more points than your opponent Points are scored by picking up a ball and throwing
it at yout opponent and the ball colliding with him/her

Game Desciption

In 3D Dodge ball, players compete to hit each other with balls. There are 3 balls on the field.
Players are restricted from moving out of the field using the plane-sphere test and approximating
the player as a sphere. The camera can be rotated using the mouse. All movement is relative to the
camera direction. A player picks up a ball moving up to it and pressing the ball pick up button.
The player must be facing the ball to pick it up. The direction of the picture is indicated by the
orientation of the texture on it When picked up the ball sits ontop of the players top and moves
with him. The player throws the ball by pressing the ball release button (the same button as the
pickup). The ball cannot be thrown if it would start on the other player, on a ball, or out of
bounds. A ball continues forward until it collides with something. A point is scored when a ball
collides with the other player.

Timing in the system is based off of how often the system redisplays the image. This allows the
program to run at the same speed on different machines.


Controls

Keyboard:
For player 1:
w or W - forward
a or A - left
s or S - back
d or D - right
v ot V - pick up or release ball

For player 2:
i or I - forward
j or J - left
k or K - back
l or L - right
. ot > - pick up or release ball

General:
b or B - cycles through the available backgrounds

Mouse:
Clicking down and dragging the mouse left or right controls the
roll of the camera. Dragging up and down controls the yaw of the
camera.

Installation

There are 2 versions of the program depending on if you want to use all of the texture backgrounds
or just the default ones. The exe for the program for just the default backgrounds can be found here.
Running this requires downloading the default textures from here and putting them into the same
directory as the exe. The textures can be found here.

The exe for the program for all the backgrounds can be found here Running this exe requires downloading
all of the textures for the other exe and also downloading all of the jpgs here and converting them to bmp using
mspaint or another converter.

If you don't have glut already installed on your computer, you will have to download the dll from
here. and extract the dll to your windows/system32 directory.




Screen Shots