Square Smasher is a simple game implemented using OpenGL and GLUT. The goal of the game is to destroy all the green squares by shooting bullets from a spaceship before time runs out.
- Shoot bullets from the spaceship to destroy green squares
- Keep track of your score as you destroy squares
- Win the game by destroying all squares
- Restart the game by pressing 'Q' after winning
- freeglut
- SDL2
- SDL_mixer
-
Clone this repository to your local machine.
-
Open the project in Visual Studio.
- Install the
nupengl.core
package:- Open the Package Manager Console (Tools > NuGet Package Manager > Package Manager Console).
- Run the following command:
Install-Package nupengl.core
- Follow the tutorial from here.
Finally Build and run the project.
- Move the spaceship by moving your mouse.
- Click the left mouse button to fire bullets at the green squares.
- Aim to destroy all the squares to win the game.
- After winning, press 'Q' to restart the game.