Metadata-Version: 2.4
Name: offlinex
Version: 1.0.4
Summary: Replace Chrome's offline dinosaur with a real game — snake, asteroids, pong and more.
Author-email: Shubham Banik <ankurbanik769@gmail.com>
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# offlinex

> Replace Chrome's offline dinosaur with a real game — from your terminal.

```
   ___  ___ ___ _    ___ _  _ _____  __
  / _ \| __| __| |  |_ _| \| | __\ \/ /
 | (_) | _|| _|| |__ | || .` | _| >  <
  \___/|_| |_| |____|___|_|\_|___/_/\_\
```

**offlinex** is a zero-dependency Python CLI that patches Chrome's built-in offline page and replaces the dinosaur with a fully playable HTML5 game. One command. Fully reversible.

---

## Install

```bash
pip install offlinex
```

## Usage

```bash
# See available games
offlinex list

# Install a game
offlinex install --game snake
offlinex install --game asteroids
offlinex install --game pong

# Check what's installed
offlinex status

# Restore the original dinosaur
offlinex restore
```

After installing, go offline in Chrome (or visit `chrome://dino/`) to play.

## Games

| Game | Description | Controls |
|------|-------------|----------|
| `snake` | Classic grid crawler | Arrow keys / WASD |
| `asteroids` | Space rock blaster | Arrows to move, Space to shoot |
| `pong` | 1v1 vs CPU paddle duel | Arrow Up/Down or W/S |

## How it works

offlinex locates Chrome's `offline.html` resource file on your system, backs up the original, and writes a self-contained HTML5 game in its place. All game assets are bundled — no internet required (obviously).

To undo: `offlinex restore` brings the dinosaur back instantly.

## Platform support

| Platform | Status |
|----------|--------|
| Windows 10/11 | ✓ |
| macOS | ✓ |
| Linux | ✓ |

## Manual target

If auto-detection fails, specify the path manually:

```bash
offlinex install --game snake --target "/path/to/offline.html"
```

## License

MIT
