Download the PHP package chemaclass/phel-flappybird without Composer
On this page you can find all versions of the php package chemaclass/phel-flappybird. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download chemaclass/phel-flappybird
More information about chemaclass/phel-flappybird
Files in chemaclass/phel-flappybird
Download chemaclass/phel-flappybird
More information about chemaclass/phel-flappybird
Files in chemaclass/phel-flappybird
Vendor chemaclass
Package phel-flappybird
Short Description A CLI Flappy Bird game written in Phel
License MIT
Package phel-flappybird
Short Description A CLI Flappy Bird game written in Phel
License MIT
Please rate this library. Is it a good library?
Informations about the package phel-flappybird
phel-flappybird
A CLI Flappy Bird written in Phel (a Lisp that compiles to PHP). Flap through scrolling pipes in your terminal.
Play
From a release PHAR (needs only PHP 8.4+):
From source:
Controls
| Key | Action |
|---|---|
space / ↑ |
flap |
q |
quit |
r |
replay (game over) |
Options
Pass key=value arguments to tune the game:
| Option | Default | Meaning |
|---|---|---|
width=N |
60 | board width |
height=N |
22 | board height |
gap=N |
6 | pipe gap height |
spacing=N |
22 | columns between pipes |
gravity=F |
0.20 | downward acceleration / tick |
flap=F |
-0.95 | velocity applied on a flap |
delay=N |
90000 | tick delay in microseconds |
debug |
off | physics overlay |
--version and --help print info and exit.
Your best score is saved to ~/.phel-flappybird-highscore.
Architecture
Functional core / imperative shell:
src/core/physics.phel— pure. The whole game is one immutable world map ({:bird :pipes :score :dead?}) advanced by a singlestepreducer. Randomness is injected by the caller, sostepis deterministic and fully unit-tested.src/core/render.phel,src/core/input.phel— the effectful edges (terminal drawing viaphel-cli-gui, keyboard reading).src/game.phel— the loop: read input →step→ render → sleep → repeat.
Development
Releasing
License
MIT
All versions of phel-flappybird with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.4
ext-readline Version *
phel-lang/phel-lang Version ^0.44
chemaclass/phel-cli-gui Version ^0.11
ext-readline Version *
phel-lang/phel-lang Version ^0.44
chemaclass/phel-cli-gui Version ^0.11
The package chemaclass/phel-flappybird contains the following files
Loading the files please wait ...