https://github.com/wldfngrs/chrome-dinosaur-terminal
A C++ and ncurses rendering of the popular chrome dinosaur game on the terminal
https://github.com/wldfngrs/chrome-dinosaur-terminal
Last synced: 7 months ago
JSON representation
A C++ and ncurses rendering of the popular chrome dinosaur game on the terminal
- Host: GitHub
- URL: https://github.com/wldfngrs/chrome-dinosaur-terminal
- Owner: wldfngrs
- Created: 2023-07-05T01:34:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-24T23:47:29.000Z (about 2 years ago)
- Last Synced: 2025-03-24T07:46:55.484Z (8 months ago)
- Language: C++
- Homepage:
- Size: 2.98 MB
- Stars: 21
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-cli-apps-in-a-csv - Dino - A C++ and ncurses rendering of the popular chrome dinosaur game on the terminal. (<a name="games"></a>Games)
README

# 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](https://github.com/fundamelon/terminal-game-tutorial) and their terminal game tutorial for an intro to terminal game development.