Flappy BirdOne flap at a time, through the gaps
Tap / Space / touch to flap · R Restart
How to play
How to play
- The page opens on a start screen that says “Tap to start · or press Space”. Click the canvas or press Space to begin; the bird takes one flap immediately.
- Every click, Space press or touch gives the bird one upward impulse. Do nothing and gravity pulls it down.
- Clearing a pipe pair earns one point, shown at the top of the canvas in real time. Press
Rto restart at any moment.
The rhythm is simple: tap to gain a little height, then keep the bird off the ground and away from the pipes and the ceiling.
Rules
- The logical canvas is 400 by 640, centered on the page. It scales proportionally on smaller windows and stays crisp on high-DPI screens.
- The bird’s collision box is a 26 by 26 rectangle at a fixed horizontal position. Pipes are 64 pixels wide with a fixed 160-pixel gap; the gap center is random but always leaves room above and below.
- Pipes are 215 pixels apart and move left at 140 px/s, with the ground stripes scrolling at the same speed.
- Collision uses axis-aligned rectangles (AABB) against the upper pipe, lower pipe, ground and ceiling. Any hit ends the run.
- Physics is time-based (delta time inside
requestAnimationFrame), so the feel is consistent across refresh rates; the delta is capped at 50 ms after a background tab resumes to stop the bird tunneling through a pipe.
Browser only
Everything is drawn with geometry: a gradient sky, clouds filled in a single path, polygon hills, pipes with highlights and flared caps, scrolling ground stripes, and a bird that tilts and flaps its wing. No image assets, no account, no saved state and no uploads — the score stays in memory on this page.