Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ratul-byte/computer-graphics-project-cse423


https://github.com/ratul-byte/computer-graphics-project-cse423

computer-graphics cse423 opengl python university-project

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# 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](https://drive.google.com/drive/folders/1JzQ77b4D_ei6ABTgEO-oiTMVJ4nKlsSg?usp=sharing) where you downloaded the .py file. It was provided to exclusively work on this project.

## Group Members:
- [Md. Ratul Mushfique](https://www.facebook.com/ratul.mushfique/)
- [Sadman Safiur Rahman](https://www.facebook.com/sadmansafiur.rahman)
- [Mohd. Shadman Ahmed Razeen](https://www.facebook.com/profile.php?id=100008473509371)

## 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](https://github.com/Ratul-byte/CSE423-Computer-Graphics-Project/assets/91417965/3ff406f5-a3a1-464c-8079-39f6515b61b6)

### Pause/Play (Left Mouse Button)
![pause_play](https://github.com/Ratul-byte/CSE423-Computer-Graphics-Project/assets/91417965/e3d5fa2a-c675-4f65-9128-89153e97ccef)

### Object Collision and Game Over
![gameover](https://github.com/Ratul-byte/CSE423-Computer-Graphics-Project/assets/91417965/501746d0-6a4c-4037-b0c1-6caedea8089d)

### Health Recovery
![recover_life](https://github.com/Ratul-byte/CSE423-Computer-Graphics-Project/assets/91417965/6c306fbc-6426-4b2e-9a40-26220701ed2c)

### Restart (Right Mouse Button)
![restart](https://github.com/Ratul-byte/CSE423-Computer-Graphics-Project/assets/91417965/a2346bbd-39ce-40ef-a397-eb9ce6115d58)