terminal-dino

Crates.ioterminal-dino
lib.rsterminal-dino
version0.2.0
created_at2025-01-02 04:55:59.381538+00
updated_at2025-05-29 04:47:02.234642+00
descriptionA simple Dino game in the terminal
homepagehttps://github.com/achen318/terminal-dino
repositoryhttps://github.com/achen318/terminal-dino
max_upload_size
id1501276
size20,612
Anthony Chen (achen318)

documentation

README

terminal-dino

The Chrome Dino game in the terminal, written in Rust. Due to budget cuts and my lack of ASCII art skills, the dinosaur became a stick figure instead.

This was created using the crossterm library to manipulate the terminal's inputs and outputs and the rand library for generating obstacle heights.

The game requires your terminal window to have a minimum height of 10 lines and a width of 20 characters. Otherwise, Rust will panic.

Installation

  1. Install Rust.
  2. Run cargo install terminal-dino.
  3. Run terminal-dino.

Controls

Use Space/w/Up to jump, p to pause, and Esc/q to exit.

Development

  1. Install Rust.
  2. Clone the repository.
  3. Run cargo run.
Commit count: 13

cargo fmt