Skip to main content

Chrome Dino Runner

A Python and Pygame take on Chrome's classic offline dinosaur game.

Python Pygame CE uv

Chrome Dino Runner gameplay: the dinosaur runs, jumps over obstacles, and the start screen is shown

Watch the MP4 recording

About

This project recreates the familiar endless runner as a small desktop game. Jump over cacti, duck under flying obstacles, and see how high you can score.

Get started

You’ll need Python 3.8 or newer and uv.

git clone https://github.com/dhhruv/Chrome-Dino-Runner.git
cd Chrome-Dino-Runner
uv sync
uv run chrome-dino-runner

Alternatively, start the game as a Python module:

uv run python -m chrome_dino_runner

Controls

Key Action
Any key Start or restart
Up arrow or Space Jump
Down arrow Duck
P Pause
U Resume

Your high score is saved in your operating system's per-user application data directory, not in the project folder. Existing score.txt scores in the launch directory are migrated there the next time you start the game.

  • Windows: %LOCALAPPDATA%\Chrome Dino Runner\score.txt
  • macOS: ~/Library/Application Support/Chrome Dino Runner/score.txt
  • Linux: $XDG_DATA_HOME/Chrome Dino Runner/score.txt (usually ~/.local/share/Chrome Dino Runner/score.txt)

Development

The project uses a src-layout package. Install the project and its dependencies into the uv-managed environment with uv sync, then launch it with uv run chrome-dino-runner.

Build a wheel and source distribution with:

uv build
src/chrome_dino_runner/
├── __main__.py
├── game.py
└── assets/

Metadata

Release files for chrome-dino-runner 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chrome-dino-runner 0.1.0
File Size Uploaded
chrome_dino_runner-0.1.0.tar.gz 4.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for chrome-dino-runner 0.1.0
File Interpreter ABI Platform
chrome_dino_runner-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 MB

Release files / chrome_dino_runner-0.1.0.tar.gz

Download URL chrome_dino_runner-0.1.0.tar.gz
Size 4.3 MB
Tags Source
SHA-256 checksum
How to use checksums
4e7716cc5657c7438c176c4e51700ee0f98a44204b363d2ec87ff9fcec7c0a4a
BLAKE2b-256 checksum
How to use checksums
1ad11340eb04c780948d99ae1f0c01fa28cebe46ae0943facdc05daff221b546
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / chrome_dino_runner-0.1.0-py3-none-any.whl

Download URL chrome_dino_runner-0.1.0-py3-none-any.whl
Size 4.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
8620cce4a59f4eb5f4dc858d8e2492951989ed4fe7ca9c102c0cfd6b60809df7
BLAKE2b-256 checksum
How to use checksums
ec10d7d82e2580e4e44de5919974eb672b4c14e047325ac7250d27be926152ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page