PROJECT 02 / HAPTICS
Haptic
Fishing.
The controller acts as a fishing rod. Different vibration patterns hint at what is on the line. A sharp bite starts a short strike window; after a hook, reeling increases both progress and line tension.
How the scene works
- Rod motion controls the cast. The scene checks whether the bobber lands in the pond.
- The rules choose a fish and move through waiting, nibbling, bite, fight, and landed states. Each state has its own timing and inputs.
- Rule events become controller vibration, text, animation, and synthesized music. In multiplayer, each headset runs its own fishing rules and shares a small visual snapshot.
INTERACTIVE STUDY
Interactive study
01—07How the game is built, in seven levels
A step-by-step course that runs the game's own code in the browser: the state machine, reeling math, casting physics, haptic design, the rod as a scene graph, adaptive music, and multiplayer.
The state machine: waiting, nibbling, bite, fight. Countdown timers, events, and why the rules never touch the graphics.
02The math of reeling in↗Two numbers, tension and progress, changing at "rate × dt". Predict whether a fish can be landed in one pull, then test it.
03Casting: from hand speed to a parabola↗Velocity from positions, the dot product, launch angles, and gravity one frame at a time.
04Haptic design↗A motor that knows only strength and duration, and a vocabulary built from pulses in time. Includes a blind test.
05The rod as a hierarchy↗Scene graphs: local transforms, global matrices, and why a rod bends into an arc on its own.
06Music that follows the game↗Oscillators, filters and envelopes; layers, ducking, and a lookahead scheduler.
07Playing together↗Multiplayer: every headset runs its own game and shares small snapshots. Latency, smoothing, presence, and starting a match together.
The code on these pages is a snapshot of the game, copied into /source/. Changes you make here stay on the page and never affect the game.