Skip to content

rothberg-cmu/rothberg-run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rothberg Run!

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.

Features

         Game Start                       Game Over
   
         Running                          Jumping
 
         Shift                          Bird View
 

Dependencies

C++   OpenGLSoji's library

Build and Run

Linux

$  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  

Mac

$  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 

Windows

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.

Composition

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

Contributor

Boxian DengZi LiMinjun XuJing Zhao

License

MIT license.
Free for all uses but please cite this repo as a reference.

Reference

All stl files are downloaded from TURBOSQUID