Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xion/flappybash
Flappy Bird in 1234 bytes of Bash
https://github.com/xion/flappybash
bash flappy-bird game
Last synced: about 13 hours ago
JSON representation
Flappy Bird in 1234 bytes of Bash
- Host: GitHub
- URL: https://github.com/xion/flappybash
- Owner: Xion
- Created: 2016-08-22T01:35:16.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-26T05:11:43.000Z (about 8 years ago)
- Last Synced: 2024-11-10T16:45:03.664Z (4 days ago)
- Topics: bash, flappy-bird, game
- Language: Shell
- Homepage: http://xion.io/post/code/bash-flappy-bird.html
- Size: 9.77 KB
- Stars: 16
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flappybash
Can _you_ beat the Unix pipes?
![FLAPPY BASH](http://xion.io/images/flappybash.jpg)
## Features
* State-of-the-art terminal graphics
* Procedurally generated sound effects
* Adjustable difficulty to challenge beginners and pros alike
* Hours of engaging gameplay## Requirements
* Pentium processor or higher
* Unix-like operating system with a modern terminal (xterm, UTF-8)
* bash 4.0+ or compatible shell### Recommended
* Linux operating system supporting ALSA
* Sound Blaster 16 or higher
* Speakers## Manual
Run it normally:
./flappybash.sh
Press `SPACE` for things to happen.
Press `q` to quit.
You can change the effective screen width by passing an argument:
./flappybash.sh 120
Lower values make the game more difficult. Anything below 80 is probably not for the faint of heart.
## Troubleshooting
#### I only see gibberish, and then the game ends.
Your bash is too old. This most likely means you're running OSX
and you'd want to use Homebrew to install an up to date one:brew install bash
Check that `bash --version` is at least 4.0 and run the script again.