Rothberg Run! is a keyboard-controlling temple-run-like game written in C++.
[ENTER]: start [ESC]: exit game
[←]: shift left [→]: shift right [SPACE]: jump
[A]: turn left [D]: turn right
The final score is calculated based on the mileage and diamonds collected. Game ends when player is out of road and scores gets
deducted everytime player encounters the fence. The player's history record will be stored in a .txt file and displayed in the leaderboard in the end.
Game Start Game Over
Running Jumping
Shift Bird View
C++ OpenGL Soji's library
$ git clone https://github.com/rothberg-cmu/rothberg-run.git
$ cd rothberg-run
$ mkdir build
$ cd build
$ cmake ../src
$ cd 3d-construction
$ make
$ ./3d-construction
$ git clone https://github.com/rothberg-cmu/rothberg-run.git
$ cd rothberg-run
$ mkdir build
$ cd build
$ cmake ../src/ -G “Xcode”
$ open Project.xcodeproj
$ Debug/3d-construction
First you need to have visual studio or other cpp compiler on your windows and download the source code to your machine. Then go to the folder where you unzip the source code, make a folder called build which locates at the same level or the src folder and run following command in the Powershell.
$ cd build
$ cmake ../src
After running these commands, you will find Project.sln in your build folder. Then what you need to do is to open this file with visual studio and compile the 3d-construction program.
To run the program, go into the folder where the 3d-construction.exe locates and double click on it.
3d-construction: 3d construction
data: all .stl files needed
map-generation: generate maps
public: soji's library
camera: camera
coins: draw diamonds
game-player: calculate player's position in real time
obstacle: obstacles like fences
Boxian Deng Zi Li Minjun Xu Jing Zhao
MIT license.
Free for all uses but please cite this repo as a reference.
All stl files are downloaded from TURBOSQUID