Skip to content

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

Notifications You must be signed in to change notification settings

wldfngrs/chrome-dinosaur-terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 git@github.com: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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published