Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 1.48 KB

README.md

File metadata and controls

49 lines (39 loc) · 1.48 KB

Drive a Car Throw Obstacles


In Task 4 we enhance our skills by using them to implement a simple game.
In the game the user drives a car throw obstacles and should avoid crashing them until he reaches the target.

1. the Scene of the game


Here we can see the first scene of the game.

scene

2. Detect collision with obstacles.


In this gif we can see the car collides with a block.
the user gets a message indicates that he lost.
then the game restarts after 3 seconds.

collwithblocks

3. Detect collision with the target.


In this gif we can see the car collides with the target.
the user gets a messaget that he won the game.
then the game restarts after 3 secondes.

collwithtarget

Functionalities in the game.


In these gifs we can see that the user can zoom in or out or return to normal.
the user can also rotate the camera to the left or the right.
the user can also move the camera up or down.

Zoom Rotate y rotate x


Acknowledgements

This code is provided as a basic example of using OpenGL for Animation. Feel free to modify and expand upon it for your own projects.