Skip to content

GabriOliv/cpp-opengl-simple-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Developed on Linux-like OS


Installation

Dependencies

sudo apt-get update
sudo apt install freeglut3-dev

Download Project

  • Use Git Clone:
     git clone https://github.com/GabriOliv/cpp-opengl-simple-games.git
  • Or Download .zip

Compilation

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

Run

  • Pong Game
     ./pong_game.exe
  • Rush Hour Game
     ./rush_hour_game.exe

Games

Game Control
Pong Game W S - [Left Side]
⬆️ ⬇️ - [Right Side]
ESC - Exit
Rush Hour ⬆️ ⬇️ - [Select Brick]
⬅️ ➡️ - [Move Brick]
ESC - Exit

 


 

Pong Game

Rush Hour