flappy-matter-gravity-lab
@jeffy24

flappy-matter-gravity-lab

Tap a soft Matter.js capsule through moving gravity gates and lab bumpers.

About this tile

Flappy Matter Gravity Lab is a physics-lab flappy clone where you tap to pulse a soft capsule through moving gates, bumpers, and purple gravity-field hazards. Matter.js powers the capsule feel and visual physics adapter, while pure TypeScript rules drive seeded obstacle plans, scoring, terminal states, retries, and difficulty progression.

What you can do

  • Tap anywhere to fly through a full-bleed mobile lab surface with no extra chrome in the way.
  • Thread moving physics gates that shift, narrow, and accelerate as your score climbs.
  • React to lab hazards including pink bumpers and purple gravity wells that change the capsule's line.
  • Chase a clean experiment run by passing 12 gates before crashing into a field strut, ceiling, or floor.
  • Open compact help from the top-right ? when you want rules without leaving the play surface.

Implementation notes

The app keeps core gameplay in logic/game.ts so obstacle generation, collisions, scoring, restart/resume, terminal states, deterministic seeds, and no-stuck invariants are tested without DOM, canvas, Matter.js, or synced-store. The UI only translates taps into explicit inputs and renders the derived state; ui/matter-adapter.ts wraps Matter.js for the soft capsule simulation layer.

Built using Codex and OpenSpec in ~/mobile-game-clones/games/flappy-matter-gravity-lab.