Skip to content

Rothberg Run! is a keyboard-controlling temple-run-like game written in C++ supporting Linux, Mac and Windows.

License

Notifications You must be signed in to change notification settings

ziliHarvey/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 coins 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.
More implementation details can be found here

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 coins
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

About

Rothberg Run! is a keyboard-controlling temple-run-like game written in C++ supporting Linux, Mac and Windows.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 62.6%
  • C 21.9%
  • CMake 12.5%
  • Objective-C 1.2%
  • GLSL 0.9%
  • Assembly 0.5%
  • Other 0.4%