play-dino
v1.0.0
Published
The Chrome dino game, in your terminal. Run `npx play-dino`.
Maintainers
Readme
play-dino
The Chrome T-Rex runner, in your terminal.
npx play-dino
The sprites are drawn with half-block characters, so each terminal cell holds two square pixels. The
world speeds up as you go, birds show up once you're fast enough, and day fades into night every 300
points. Your high score is kept in ~/.play-dino.json.
Controls
| Action | Keys | | --- | --- | | Start, jump, restart | Space, Up, W | | Duck, or drop faster mid-air | Down, S | | Pause | P | | Quit | Q, Esc, Ctrl+C |
In terminals that support the kitty keyboard protocol (kitty, ghostty, WezTerm, foot, Alacritty and others) the game also sees key releases: hold down to keep ducking, and tap jump for a short hop or hold it for a full one. Elsewhere, ducking lasts a moment per press and key repeat keeps it going.
Options
play-dino --no-color # monochrome; NO_COLOR=1 does the same
play-dino --version
play-dino --helpThe terminal needs to be at least 50×22. Colors are 24-bit, with a 256-color fallback for Apple's Terminal. Node 16 or newer, no dependencies.
License
MIT
