WELCOME TO THE QB SIMULATOR

CMPS161 Winter '05 Final Project

by Petr Odehnal

 

Introduction:

Welcome to the greatest video game ever created. More realistic than Pong. More exciting than solitaire. Its Quarterback Simulator!!!

 

General:

For my final project I wanted to make a video game that involved hitting moving targets. More specifically I wanted to see how realistically you could simulate the act of leading a reciever. Thus, I came up with the quaterback simulator. The goal was to see how accurately I could model the physics behind hitting moving a target. My game allows the user to throw footballs at a target by aiming with the mouse and by calculating the velocity of the throw by how long the mouse button was pressed. I implemented gravity on to the ball so that it decends realistically.

 

Implementaion:

Inorder to make this game work I had to overvome several obsticles. Though the game looks simple there were many complex issues that had to be resolved inorder to achive my goals. One of the most complex aspects making the crosshairs align with the mouse coordinates on the screen. I managed to solve this problem by using a method in openGL that "un-does" the projection matrix in order to find the actual screen coordinates. Another obsticle was in implementing the in intial velocity of the ball. I accomplished this by subtracting the projected coordinates of the mouse with the camera origin.

 

Instructions:

1) To start type sim_QB in to the console.

2) Once the game is "up", you can begin by selecting any of the six routes.

3) Now simply try to hit the reciever.

4) If you hit the target, press the reset button and another route to continue.

5) You can check your score at any tiem by looking at the console window.

6) You can change the reciever speed and QB arm strength by moving the dials

7) HAVE FUN.