项目作者: GabriOliv

项目描述 :
Simple Games using C++ and OpenGL
高级语言: C++
项目地址: git://github.com/GabriOliv/cpp-opengl-simple-games.git
创建时间: 2021-02-02T08:32:56Z
项目社区:https://github.com/GabriOliv/cpp-opengl-simple-games

开源协议:

下载


Simple Games (C++ Opengl)

Developed on Linux-like OS


Installation

Dependencies

  1. sudo apt-get update
  2. sudo apt install freeglut3-dev

Download Project

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

Compilation

  1. cd cpp-opengl-simple-games/
  2. g++ -o rush_hour_game.exe rush_hour_game.cpp -lglut -lGL -lGLU
  3. g++ -o pong_game.exe pong_game.cpp -lglut -lGL -lGLU

Run

  • Pong Game
    1. ./pong_game.exe
  • Rush Hour Game
    1. ./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