This is a simple game developed using OpenGL in C++. It involves controlling a player point to collect food points while avoiding obstacles.
To get a local copy up and running, follow these simple steps.
- C++ compiler
- OpenGL
- GLUT (OpenGL Utility Toolkit)
- Clone the repo
git clone https://github.com/your_username/Two-Point-Game.git
- Compile the code using any C++ compiler. For example, using g++:
g++ main.cpp -o TwoPointGame -lglut32 -lopengl32 -lglu32 -lwinmm
- Run the executable file generated.
- Use 'W', 'A', 'S', 'D' keys to move the player point up, left, down, and right respectively.
- Collect the red food points to increase your score.
- Avoid collision with the white obstacles.
- The game ends when the time runs out.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (git checkout -b feature/AmazingFeature)
- Commit your Changes (git commit -m 'Add some AmazingFeature')
- Push to the Branch (git push origin feature/AmazingFeature)
- Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
- Thanks to OpenGL for the graphics library.
- Thanks to GLUT for the utility toolkit.