r/pygame • u/Onheiron • 1h ago
Birds vs Bats: an arcade roguelite in pygame + numpy, with leaderboards verified by replaying every
galleryI've been building Birds vs Bats, a roguelite drawn entirely in coloured text. It runs in a terminal or in a pygame window (pip install birds-vs-bats, then bvb).
Parts I think this sub might like:
- Leaderboards without a game server: a finished game is uploaded as a recording (seed, settings, every key with its frame time). A GitHub Actions job checks out the game's version tag, replays it headless, and ranks it only if it reaches the same score.
- Adaptive music rendered at runtime with numpy from a small sample bank: every bird kind in your flock adds an instrument, tempo follows your speed.
- A headless simulator and a bot with tunable skills, used to balance the game ("without a build you should die around world 3").
- PyInstaller builds for Linux, macOS and Windows, published by one workflow, plus an in-game updater that checks SHA256 sums before swapping the install.
Source: https://github.com/Onheiron/PY-birds-vs-bats - happy to answer questions about any of it.