Flappy Bird — Aritro Saha Arcade

A minimalist obstacle-navigation game engineered with realistic gravitational acceleration and collision detection.

Game Mechanics

Guide the bird through narrow pipe gaps by timing flap impulses. Gravity constantly pulls the bird downward, requiring precise rhythmic tapping to sustain altitude without colliding with pipes or the ground.

Euler Numerical Integration & Frame Independence

The game implements classic 2D kinematic physics:

  • Gravitational Velocity Integration: On every animation tick, gravitational acceleration accumulates into vertical velocity (v = v + gravity * dt). Position is updated by y = y + v * dt.
  • Instantaneous Impulse: Flapping instantaneously sets vertical velocity to a negative impulse threshold, simulating realistic aerodynamic wing lift.
  • Delta-Time Normalization: Delta timing (dt) ensures that game physics behave identically regardless of whether the player is on a 60Hz laptop or a 120Hz/144Hz high-refresh mobile screen.
  • Procedural Obstacle Pipes: Pipe heights are generated procedurally with uniform vertical apertures and constant horizontal spacing.

Controls

  • Desktop: Press Spacebar or click anywhere with mouse to flap wings.
  • Mobile: Tap anywhere on touch screen to execute upward flap impulse.

Frequently Asked Questions

How are bird physics and gravity simulated?

The game uses Euler numerical integration with delta-time scaling so gravitational acceleration and flap impulses remain consistent across all display refresh rates.

Are high scores saved between sessions?

Yes, your personal best score is persisted in browser localStorage and displayed on the game over screen.