A Flappy Bird clone built with Phaser CE (Phaser 2), with hand-drawn graphics.
The whole game is played with a single key: O.
In the start menu, the selection switches between PLAY and SPEED on its own. Press O to activate the highlighted line: PLAY starts the game, SPEED cycles between SLOW, NORMAL, FAST and SUPER FAST.
In game:
- Press the O key to flap
- Fly between the pipes to score points
- Hit a pipe, the ground or the ceiling and it's game over: your score is displayed, then O brings you back to the menu
- Watch out: some pipes scroll a bit slower, and some others slowly move up and down (never both at once)
- Your best score is saved in the browser
The game must be served by a web server (opening the file directly blocks image loading):
python3 -m http.serverThen open http://localhost:8000 in your browser.
| File | Purpose |
|---|---|
index.html |
The whole game: page + Phaser code |
bird.png |
Bird sprite |
pipe.png |
Pipe sprite (adapted to the game's aspect ratio) |
pipe-top.png |
Flipped pipe sprite, used for the top pipes |
onekey.png |
The bird's O-key head, used as the O in the title |
screenshots/ |
Screenshots used in this README |
bird-original.png, pipe-original.png |
Original drawings, kept for future edits |
Phaser CE is loaded from a CDN, there is nothing to install.
A few variables at the top of index.html let you tweak the difficulty:
birdGravity: gravity strength (default: 800)birdFlapPower: power of one flap (default: 300)speeds: the SLOW / NORMAL / FAST / SUPER FAST values offered in the menupipeDistance: horizontal distance between pipes in pixels, the same at every speed (default: 250)pipeHole: size of the gap between pipes (default: 200)