A tap-to-fly game has one input: tap and the character flaps upward, do nothing and it falls. It scrolls through gaps, and one touch ends the run. The feel sits in a handful of numbers: gravity, flap strength, gap size and spacing. Put them in one paragraph and the agent builds a playable version in the emulator preview.
Why it makes a good first game
- One input. There is no control layout to design. A tap anywhere is the whole interface.
- One obstacle. A pair of barriers with a gap between them, repeated.
- Runs last seconds. You can test a change twenty times in five minutes.
- Every complaint has a number. Too heavy is gravity. Too hard is the gap. Too frantic is the spacing.
- The rules fit in a paragraph. That makes it an easy game to describe well.
The game, described twice
A tap-to-fly game for phones. A small bee flies to the right and falls with gravity. Each tap anywhere gives it one flap upward. Pairs of flower stems with a gap between them scroll in from the right, with the gap at a different height each time. Touching a stem or the ground ends the run. One point per gap passed. Make the first three gaps wider. Show the score large at the top, and a game-over card with the best score that restarts on a tap.
A browser game played with the space bar, a click or a tap. A paper plane sinks by itself and each press lifts it. It flies between stacks of books with a gap. Hitting a stack or the floor ends the run, and the ceiling only stops the plane. One point per gap. Bronze medal at 10 points, silver at 20, gold at 30. The background changes from day to night every 10 points.
Gravity and flap: the numbers behind the feel
Treat the screen as 600 units tall, whatever the real size of the phone. The same numbers then feel the same on every screen.
| Setting | Starting value | What it changes |
|---|---|---|
| Gravity | 1,500 units per second squared | How heavy the fall feels |
| Flap | Sets the upward speed to 450 units per second | How high one tap lifts |
| Top falling speed | 600 units per second | Keeps a long fall readable |
| Scroll speed | 150 units per second | How fast the gaps arrive |
With these values one flap lifts the character about 68 units, a ninth of the screen, and it reaches the top of the arc after 0.3 seconds. Too much lift and the character overshoots gaps. Too long a rise and it feels floaty.
The most important rule is that a flap sets the upward speed. It does not add to the current speed. If it adds, two quick taps fire the character into the ceiling, and a tap during a fast fall does almost nothing. When every tap gives the same lift, the player can learn a rhythm.
Change gravity and flap together. More gravity alone makes each flap lower as well as each fall faster. To keep the same lift, use flap = square root of (2 × gravity × lift). A gravity of 2,000 with a flap of 520 still lifts 68 units, but it feels snappier.
One visual helps a lot: tilt the nose up on a flap and let it turn downward during the fall. The player then reads the speed from the picture.
Gap size and spacing
| Setting | Starting value |
|---|---|
| Gap height | 150 units, a quarter of the screen |
| Distance between obstacles | 220 units, one about every 1.5 seconds |
| Gap position | At least 100 units from the top and from the ground |
| Change between neighbouring gaps | At most 160 units up or down |
A gap of 150 units is a little more than two flap heights, which leaves room for a mistake in both directions. Under about 110 only practised players get through.
The limit on the change between neighbours matters most. Pure chance will sometimes place a gap at the very top right after one at the very bottom, and nobody can cover that distance in time. Players call that unfair, and they are right.
The classic form keeps the difficulty constant. If you want a ramp, shrink the gap by 2 units per point down to 120, or raise the scroll speed by 5 percent every 10 points up to a limit. Pick one.
The first three gaps
Most runs by a new player end at the first obstacle.
- The game waits on a "Tap to start" screen with the character hovering. Gravity begins with the first tap.
- The first obstacle arrives about two seconds after that tap.
- The first three gaps are 180 units tall and sit near the middle of the screen.
A player who has passed three gaps understands the game and will try again. A player who scores zero three times in a row closes it.
A hitbox smaller than the picture
The hitbox is the invisible shape the game uses to decide whether something was touched. Make the character's hitbox about 75 percent of its picture, centred. A wing tip that brushes a stem should not end the run. Near misses then look closer than they are, which is exciting. A hit the player cannot see feels like cheating.
Keep the obstacle hitboxes exact. Let the ceiling block the character without ending the run.
If you later swap the shape for your own picture, ask for the hitbox to stay the same size. A wide picture with empty edges would otherwise change the difficulty.
Instant restart
Runs are short, so a player restarts dozens of times in a session. From the hit to flying again should take about a second.
- A brief flash and a fall, then the game-over card.
- A tap anywhere on the card starts the next run. No menu, no countdown.
- Taps are ignored for the first 0.4 seconds after the hit, so a panic tap does not skip the score.
In a mobile game, ask for a short vibration on the hit. In a browser game, ask for a low tone made in code.
Medals and a changing theme
Medals turn one long score chase into steps: bronze at 10 points, silver at 20, gold at 30 and platinum at 40. Show the medal on the game-over card beside the score and the best score. Set bronze where a new player lands on a good run within the first ten minutes. If friends should compare scores, add a shared top ten with the leaderboard guide.
A theme change costs nothing in rules and marks progress. Switch from day to night every 10 points. You can also change the whole setting and keep the numbers: a fish between coral, a rocket between asteroid belts. For a twist in the rules, let the gaps drift slowly up and down after 20 points.
What to type when it feels wrong
| What you notice | What to send |
|---|---|
| The character hangs in the air | "It feels floaty. Raise gravity to 2,000 and the flap to 520 so the lift stays the same." |
| Double taps shoot it upward | "A flap must set the upward speed, not add to it." |
| You die without seeing a touch | "Make the bee's hitbox 75 percent of its picture, centred." |
| Some gaps cannot be reached | "The gap may move at most 160 units up or down from the one before." |
| New players score zero | "Make the first three gaps 180 units tall and near the middle." |
| Restarting is slow | "A tap anywhere on the game-over card restarts at once. Ignore taps for the first 0.4 seconds." |
Take off
Open the builder, paste the first description above and play ten runs.
Frequently asked
What gravity and flap strength should a tap-to-fly game use?
On a screen treated as 600 units tall, start with a gravity of 1,500 units per second squared and a flap that sets the upward speed to 450 units per second. One flap then lifts the character about 68 units in 0.3 seconds.
How big should the gap be?
About a quarter of the screen height, or a little more than two flap heights. Below roughly a fifth of the screen only practised players get through.
Why does my tap-to-fly game feel unfair?
The usual causes are a hitbox as large as the picture, a gap that jumps from the top to the bottom between two obstacles, and a first obstacle that arrives before the player has found the rhythm.
Should the game get harder as the score rises?
It does not have to. The classic form keeps every gap the same and lets concentration be the challenge. If you want a ramp, shrink the gap slowly or raise the scroll speed, with a limit, and change only one of the two.
Is a tap-to-fly game a good first game to make?
Yes. It has one input, one kind of obstacle and runs that last seconds, so every change can be tested many times in a few minutes.
Build it now — free to start
Type the idea, sign in, and the agent builds it in your browser. Change anything by describing it.
Open the builder ›