Git Product home page Git Product logo

curioustauseef / rothberg-run Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ziliharvey/rothberg-run

0.0 0.0 0.0 10.71 MB

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

License: MIT License

CMake 12.47% C++ 62.61% HTML 0.01% Python 0.17% C 21.94% Objective-C 1.23% GLSL 0.92% Assembly 0.48% Visual Basic 0.01% Batchfile 0.01% Java 0.09% Shell 0.01% MATLAB 0.02% Makefile 0.06%

rothberg-run's Introduction

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

rothberg-run's People

Contributors

eastlife avatar jingzhao3200 avatar mjxu96 avatar ziliharvey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.