Metadata-Version: 2.4
Name: firefly-meadow
Version: 0.1.2
Summary: An interactive ASCII firefly meadow for macOS, Linux, and Windows terminals.
Author: Rahul Bantupalli
License-Expression: MIT
Keywords: terminal,ascii,game,fireflies,iterm,windows-terminal,toy
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Microsoft :: Windows
Classifier: Environment :: Console
Classifier: Topic :: Games/Entertainment
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# ✨ Firefly Meadow

**A tiny, interactive firefly garden for your terminal.** Move your mouse through the meadow to stir the grass and send fireflies drifting behind your cursor. Click for a burst of light.

```text
            .       *            .
     *          .       .    *
  '  |   ,    *     '  |   .   ;
   \ | /       .       \ | /    '
```

## Get started

Install with pip:

```bash
python3 -m pip install firefly-meadow
```

Then launch it in a terminal:

```bash
fireflies
```

On Windows, use `py -m pip install firefly-meadow` if `python3` is not available. The game command is still `fireflies`.

### Run without a permanent install

With [pipx](https://pipx.pypa.io/):

```bash
pipx run --spec firefly-meadow fireflies
```

With [uv](https://docs.astral.sh/uv/):

```bash
uvx --from firefly-meadow fireflies
```

## Requirements

- Python 3.9 or newer
- macOS, Linux, or Windows 10/11
- An interactive terminal with 24-bit color and SGR mouse reporting

There are no third-party Python dependencies. On Windows, use Windows Terminal or another console with virtual-terminal input and output support. WSL is also supported. The game needs a real terminal; notebook and IDE output panels won’t work.

## Controls

| Do this | To do this |
|:--|:--|
| Move the mouse | Rustle the grass and leave a glowing trail |
| Left-click | Send out a burst of fireflies |
| Press `c` | Clear the meadow |
| Press `q` or `Ctrl-C` | Quit |

## If something doesn’t work

- **`fireflies` isn’t found:** Activate the Python environment where you installed the package, or open a new terminal after installation. On Windows, check that Python’s `Scripts` directory is on `PATH`.
- **The mouse doesn’t respond:** Use a terminal with SGR mouse support. In iTerm2, enable **Preferences → Profiles → Terminal → Report mouse clicks and drags**. In tmux, add `set -g mouse on` to your tmux configuration.
- **Windows input or colors look wrong:** Run the game in Windows Terminal and make sure virtual-terminal support is enabled.
- **It says an interactive terminal is required:** Run `fireflies` directly in a terminal window, without redirecting input or output.

Make the terminal window large for the best view. 🌿

## License

MIT — see [LICENSE](LICENSE).
