Physics Demo
This physics demo is a game where you can shoot 4 different types of objects at walls and other objects and it will bounce around and move the objects it hits based on physics. Every time
any object in the scene collides with another object you get 100 points, if more than 1 second has elapsed since an object has collided then your current score is recorded as the high score and
your current score is reduced to 0.
Features
- Collision response
- 4 different types of projectiles
- Score tracking
- Physics
My Role in This Project
This project was aa individual project and the basic engine for the game was provided by our professor. The specific parts of the project that I worked on are as follows:
- Collision Response
- 3D model importing
- Physics
- Gameplay
- Design of the game
- Custom cylinder 3D object which is used as the cannon
- Creation of 3D models
Programming Challenges
This project was fairly simple and straightforward and as such I did not encounter any challenges
Screenshots
Code Sample
The following link contains a zip file with some of the important code used in this project:
Controls
- Rotate Cannon Forward - W
- Rotate Cannon Back - S
- Rotate Cannon Left - A
- Rotate Cannon Right - D
- Move Cannon Forward - UP ARROW
- Move Cannon Back - DOWN ARROW
- Move Cannon Left - LEFT ARROW
- Move Cannon Right - RIGHT ARROW
- Apply Angular Moment in the Left Direction to Cannon - Q
- Apply Angular Moment in the Right Direction to Cannon - E
- Fire Projectile - SPACE
- Change Projectile Type - 1 - 4 keys
Game Download
Download the game files here:
Depending on your version of the DirectX runtimes you may need to install the newest version to run the game. You can install the newest version
by going to the following website
|