Log inGet started
World

Pin Pull Panic

Branchmain
Branchesmain
Commit03ec91e83b

README.md

PinPullPanic

The whole game Pin Pull Panic in one world-component — a "pull the pin" rescue puzzle. Coloured physics spheres ("fluids") sit in chambers gated by horizontal pin bars (static colliders). Tap a pin to retract it; gravity routes the spheres.

  • Water (blue) — fill the hero's chamber to the threshold to rescue him.
  • Lava (red) — one touch on the hero loses the level. Keep it away.
  • Treasure (gold) — land it in the basket for stars (0–3).
  • Pin — tap to pull. One-way: pins never go back, so order is the puzzle.

This single component owns everything: the state machine (menu / level select / settings / extras / playing / pause / win / lose), the handcrafted levels and their geometry, the physics build, click→world pin picking, the zui UI, and progress persistence (to .world_settings under the pinpull.* keys).

It is attached to the game entity in scenes.main. The scene uses a static menu camera which the component parks at a fixed front view each frame, and opts out of a player avatar — the "hero" is a marker the component spawns.

Tune or add levels by editing the levels() table near the top of init.luau; each entry is { title, waterGoal, walls, pins, fluids, hero, basket?, sink? } in a simple x in [-6,6], y up from 0 coordinate space.