This project is a simple 2D OpenGL game implemented in C++. The game uses various graphical components and animations to simulate a fun and interactive environment. The player controls Finn, a character who collects coins, avoids walls, and earns points while progressing through the game.
- Dynamic Background: A multi-layered, colorful backdrop for the game environment.
- Character (Finn): Animated character with detailed rendering.
- Collectibles: Coins and batteries to earn points and keep the game engaging.
- Obstacles: Walls to avoid for maintaining health and progress.
- Win/Loss Conditions:
- Win by collecting enough points.
- Lose if certain conditions are not met.
- Use the keyboard to control Finn’s movements (specific keys to be defined in the game loop).
- Collect coins and batteries to earn points.
- Avoid walls to prevent losing health.
To compile and run this project, you need the following libraries installed on your system:
-lGL
-lGLU
-lglut
-
Clone the Repository:
git clone <repository-url> cd <repository-folder>
-
Compile the Code: Use the following command to compile the project:
g++ -o main main.cpp -lGL -lGLU -lglut
-
Run the Game: Execute the compiled binary:
./game
- Add more characters or collectibles.
- Enhance Background Details.
- Realistic Movement.