A 2D Plane Simulation Game built using C++ and OpenGL (GLUT).
Fly your plane, dodge obstacles, shoot bullets, and experience day-night transitions and dynamic weather effects — all in real-time!
- Plane Control: Move your plane (up, down, left, right) with keyboard inputs.
- Day-Night Cycle: Smooth transition from day 🌞 to night 🌚 during gameplay.
- Dynamic Weather:
- Realistic clouds ☁️
- Rain effect ☔
- Obstacles: Falling trees 🌳 that you must dodge.
- Collision Detection: Game ends if your plane collides with obstacles.
- Bullets & Shooting: Shoot bullets to clear obstacles.
- Score Tracking: Earn points for dodging and shooting.
- Animated Environment: Moving trees, clouds, and weather.
- Sound Effects: Engaging audio for shooting and collisions.
- C++
- OpenGL (GLUT)
- GL Utility Toolkit for window and input management
- Basic sound libraries (optional)
| Key | Action |
|---|---|
W / Up Arrow |
Move Up |
S / Down Arrow |
Move Down |
A / Left Arrow |
Move Left |
D / Right Arrow |
Move Right |
Spacebar |
Shoot Bullet |
Esc |
Exit Game |
- Make sure you have OpenGL and GLUT installed.
- Compile the code:
g++ aviator_game.cpp -o aviator_game -lGL -lGLU -lglut
- Run the game:
./aviator_game
- Real-time game loop creation in C++
- Handling animations using OpenGL
- Implementing physics-based collision detection
- Working with sound in C++ games
- Managing game states (start, running, game over)
This project is for educational purposes and personal portfolio. Feel free to explore and learn!



