Flappy-Bird in your terminal
Physics-driven flap game โ the bird's vertical motion is a HoneyBounce projectile (gravity + an upward velocity kick on each tap), pipes scroll left at a fixed cell rate, collision is per-cell. Pure-state Game class; the renderer is a one-pass canvas fill.
composer require candycore/honey-flap
./bin/honey-flap
// Programmatic:
use CandyCore\Core\Program;
use CandyCore\Core\ProgramOptions;
use CandyCore\Flap\Game;
(new Program(Game::start(),
new ProgramOptions(useAltScreen: true)))->run();
Projectile with gravity vector. flap() rebuilds the projectile with an upward velocity kick โ same trick the original flapioca uses, just expressed as projectile state.PIPE_EVERY ticks; the gap row is sampled from the injected PRNG so tests pin layouts deterministically.Cmd::tick(0.033, โฆ) โ 30 fps. Each tick advances physics + scrolls pipes + checks collision.r reseeds the world; q / Esc quits.VHS-recorded GIFs of every example shipped with the app. Regenerated automatically on every push that touches the source.