A 3D tank battle game built with Python and OpenGL. Navigate the battlefield, destroy enemy tanks, dodge obstacles, and manage your health and accuracy.
This project was developed as the final lab project for CSE423 Computer Graphics.
Course: CSE423 (0.75 Credit Lab)
Supervised by:
- Farhan Feroz [FHZ]
- Arian Nuhan [CARN]
Developed by:
- Md. Tanvirul Islam
- Monowar Husain
- Al Mahmud
- π‘ 3D Graphics β Rendered with OpenGL, featuring dynamic camera perspectives.
- π€ Enemy AI β Enemy tanks pursue you and retreat upon collision.
- π³ Obstacles β Trees and houses block movement and bullets.
- π₯ Explosions β Visual and particle effects when enemies are destroyed.
- π₯ Camera Modes β Toggle between first-person and third-person views.
- π§ Cheat Mode β Auto-rotation and rapid fire (for testing or fun).
- β‘ Power-ups (planned) β Health boosts, rapid fire upgrades, and shields.
| Action | Keys/Mouse |
|---|---|
| Move | W (forward), S (backward), A (rotate left), D (rotate right) |
| Turret | Q (rotate left), E (rotate right) |
| Shoot | Left-click |
| Camera | V (toggle first-/third-person), Arrow keys (adjust distance/height) |
| Cheats | C (toggle auto-rotation + rapid fire) |
| Restart | R (after game over) |
- Python 3.x
- Packages:
PyOpenGL,PyOpenGL_accelerate,GLUT
pip install PyOpenGL PyOpenGL_accelerate