Developed on Linux-like OS
sudo apt-get update
sudo apt install freeglut3-dev
- Use Git Clone:
git clone https://github.com/GabriOliv/cpp-opengl-simple-games.git
- Or Download .zip
cd cpp-opengl-simple-games/
g++ -o rush_hour_game.exe rush_hour_game.cpp -lglut -lGL -lGLU
g++ -o pong_game.exe pong_game.cpp -lglut -lGL -lGLU
- Pong Game
./pong_game.exe
- Rush Hour Game
./rush_hour_game.exe
Game | Control |
---|---|
Pong Game | W S - [Left Side] ⬆️ ⬇️ - [Right Side] ESC - Exit |
Rush Hour | ⬆️ ⬇️ - [Select Brick] ⬅️ ➡️ - [Move Brick] ESC - Exit |