Skip to content

Floppy Heads

  • Click / Space — flap (fly upward)
  • Avoid the drive heads and the ground
  • Gravity physics: Velocity accumulates via GRAVITY * dt, capped at MAX_VEL
  • Object pooling: 4 head pairs are recycled — deactivated off-screen left, respawned on the right
  • Composite visuals: Floppy disk built from 4 rectangles (body, slider, label, hub), all rotate together
  • Idle animation: Bob with Math.sin(t * 2.5) * 8 in “ready” phase

View on GitHub