# Pipe Flyer

> Tap or click to fly through pipes in this addictive side-scrolling arcade game. Track your high score and try to beat your best.

- Open the tool: https://overtooled.com/pipe-flyer
- Category: Games
- Privacy: Runs entirely in your browser. Nothing is uploaded, no account is needed, and it works offline once loaded.
- Price: free, no sign-up
- Keywords: pipe, flyer, game, fly, arcade, tap

## In short

Tap or click to fly through the pipes in this side-scrolling arcade game.

## Overview

A one-button side-scroller. A round bird falls under gravity; each flap gives it a fixed upward kick. Fly through the gaps between pipes; every pipe passed scores a point, and touching a pipe, the ground or the top of the screen ends the run.

## Features

- Gravity of 0.35 per frame; a flap sets the vertical speed to -6 (it replaces the current speed rather than adding to it)
- Pipes appear every 90 frames at a random height, with a fixed 140px gap, moving 2.5px per frame
- Fair round hitbox: collision is circle-vs-rectangle with a radius 3px smaller than the drawn bird (15 vs 18px), not the bird's bounding square
- Physics runs in single-frame substeps, so a frame hitch cannot jump the bird into a pipe it never visibly touched; the crash frame is drawn before Game Over
- A tap on the title screen starts the game and flaps in the same gesture
- Wing-down pose for a moment after each flap as instant feedback
- Best score saved on the device

## How to use it

1. Tap the game, click, or press Space to start (the first press also flaps).
2. Flap to rise; between flaps gravity pulls the bird down.
3. Pass through the gaps in the pipes to score.
4. After a crash, press Play Again (or Space) to retry.

## Inputs

- Touch / mouse: tap or click anywhere on the game
- Keyboard: Space, Up arrow or W

## Outputs

- Score (pipes passed) and best score
- Final score on the Game Over screen

## Limits and notes

- Pipe speed and gap size stay the same for the whole run
- Best score is stored in localStorage (overtooled:pipe-flyer:best)

## Keyboard shortcuts

- Space / Up / W: flap (and start from the title screen)
- Esc / P: pause and resume
- Space / Enter: resume or play again

## Questions and answers

### How does Pipe Flyer work?

A requestAnimationFrame canvas loop applies gravity of 0.35 per frame to the bird, and each flap sets its vertical speed to -6. Pipes spawn every 90 frames at a random height with a fixed 140px gap. The bird collides as a circle with a radius 3px smaller than the drawn bird, so only real overlaps count, and physics runs in single-frame substeps so a slow frame cannot jump the bird into a pipe.

### What are the controls?

Tap or click anywhere on the game, or press Space, Up or W, to flap. Gravity pulls you down between flaps. Tapping the start screen starts the game and flaps at once. Fly through the gaps in the pipes to score.

### Is my high score saved?

Yes. Your best score is saved locally in your browser so you can track your progress and try to beat your personal record.

### Any tips for a higher score?

Make small, frequent taps rather than big flaps. Stay near the center of the screen to give yourself room to react to pipes opening up or down. The timing becomes intuitive with practice.

## Related tools

- [Asteroids](https://overtooled.com/asteroids.md): Play the classic Asteroids space shooter with retro vector graphics
- [Block Drop](https://overtooled.com/block-drop.md): Stack falling tetrominoes to clear rows with keyboard controls and high scores
- [Pong](https://overtooled.com/pong.md): Play classic Pong against a CPU opponent, first to 7 wins
- [Snake](https://overtooled.com/snake.md): Classic snake game with increasing speed, swipe controls, and high score tracking

---
Overtooled: 179 free tools that run in your browser. Index of all tools: https://overtooled.com/llms.txt
