tui-invaders
v0.2.0
Published
Terminal Space Invaders built with OpenTUI. Pixel art ships, bosses, drops, high scores.
Downloads
328
Maintainers
Readme
TUI Invaders
A terminal Space Invaders game built with OpenTUI.

Features:
- True pixel-art ships via half-block rendering with per-cell colors
- Animated boss fights (Dax) every 5 levels with a health bar and explosion
- Power-up drops: gun upgrade, rapid fire, shield, spread, triple shot, life (rare)
- Starfield background, animated particles
- Persistent high scores
- Pause dialog
Requirements
Bun >=1.0.0
Install
# run directly with bunx (no install)
bunx tui-invaders
# or install globally
bun install -g tui-invaders
tui-invadersControls
| Key | Action |
| -------- | ------ |
| ← / A | Move left |
| → / D | Move right |
| Space | Shoot |
| P | Pause / resume |
| R | Restart after game over |
| Ctrl+C | Quit |
High scores are saved to a per-platform data directory:
- Linux:
$XDG_DATA_HOME/tui-invaders/highscores.json(defaults to~/.local/share/tui-invaders/) - macOS:
~/Library/Application Support/tui-invaders/highscores.json - Windows:
%APPDATA%\tui-invaders\highscores.json
Develop
bun install
bun run start
bun run checkLicense
MIT
