/Computer-Graphics-Project-CSE423

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Computer Graphics Project

Hello everyone! 👋 This is a small project developed during our university's computer graphics course. We utilized Python and its OpenGL libraries, drawing inspiration from YouTube tutorials, ChatGPT, StackOverflow, and various other free online resources.

**For this project to work make sure to have this folder where you downloaded the .py file. It was provided to exclusively work on this project.

Group Members:

Project/Game Description:

Experience a captivating 2D top-view game where a single car maneuvers through obstacles. The car starts with three lives, and colliding with obstacles deducts one life. Three obstacles will generate in every loop and among them two of them are fake, therefore hitting them will not cost you any life; thus giving you the option to take the risk or not. Moreover, colliding with point shapes awards the player a point, whereas encountering reverse diamond shapes provides an additional life. The game dynamically changes the environment around the moving car, showcasing roads, trees, and squared obstacles generated through midpoint line and midpoint circle algorithms. Last but not least, for an enriched experience, I've integrated a music track from the renowned anime "Initial D" into the project.

(I also created a .exe file of it and might upload it very soon)

Input Keymaps:

  • Keyboard Function: Right and Left Arrow keys for car movement.
  • Mouse Function: Left-click to Pause/Resume gameplay, Right-click to Restart.

Feel free to explore and contribute to our project on GitHub!

Gameplay Demo

Car Movement (Left & Right Key Arrow) & Point Collection

right_left_key

Pause/Play (Left Mouse Button)

pause_play

Object Collision and Game Over

gameover

Health Recovery

recover_life

Restart (Right Mouse Button)

restart