GithubHelp home page GithubHelp logo

wldfngrs / chrome-dinosaur-terminal Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 1.0 3.05 MB

A C++ and ncurses rendering of the popular chrome dinosaur game on the terminal

C++ 68.96% CMake 29.95% C 1.10%

chrome-dinosaur-terminal's Introduction

dino_gif

Dino

This repository contains a rendering of the popular chrome dinosaur game on the terminal, in C++ and curses.

Requirements

CMake

You will need cmake to create and use the build system.

ncurses library

You will need to install the ncurses library using the package manager available to you in your operating system.

Ubuntu: sudo apt-get install libncurses5-dev libncursesw5-dev

Arch Linux: sudo pacman -S ncurses

Installation

To install this program, clone this repository onto your local machine using the following command:

$ git clone [email protected]:wldfngrs/chrome-dinosaur-terminal.git

Once you have cloned the repository, you can navigate to the repository directory.

$ cd chrome-dinosaur-terminal

You will need to create a directory where the build files will be placed, preferably outside the project repository tree, and run the CMake command to generate the build system as follows:

$ mkdir ../chrome-dinosaur-terminal-build $ cmake -B ../chrome-dinosaur-terminal-build

In order to compile the program you will need to run the following command:

$ cmake --build ../chrome-dinosaur-terminal-build

To Run the game, the build system should create a link to the running binary in the current directory so you should be able to run the game with the following command:

$ ./dinosaur_game

In case that doesn't work on your system, the actual program is in the build directory so you can run it via the following command: $ ../chrome-dinosaur-terminal-build/dinosaur_game

Enjoy!

Credits

Thanks to fundamelon and their terminal game tutorial for an intro to terminal game development.

chrome-dinosaur-terminal's People

Contributors

wldfngrs avatar mathewbensoncode avatar

Stargazers

Okinea Dev avatar Thomas Soteros avatar  avatar Stanislav Zaleski avatar Anthony Elia avatar Alien avatar dandax123 avatar Rowlet avatar Colleen Lohr avatar Pat avatar Davidson Francis avatar  avatar givans_ avatar Cpp <africa> avatar Elijah Manor avatar Ben avatar Aaryan Raj avatar Emanuele De Stefani avatar jmcb avatar Mateus Moutinho Queiroz avatar sweet avatar

Watchers

 avatar  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.