PROJECT 01 / MOVEMENT
AI
Choreography.
A WebXR movement game. A timed pose sequence determines where two hand targets appear relative to the player. The game compares controller positions with those targets and responds with score, sound, and visual feedback.
How the scene works
- The Quest tracks the headset and controllers. WebXR provides their poses to the page each frame.
- The shared clock selects a pose from a table. The scene converts that pose into target positions in front of the player.
- The scene compares each controller with its target and updates the game state. Music and the partner view use the same timing information.
INTERACTIVE STUDY
Interactive study
01—07The game, in seven levels
A step-by-step course that runs the game's own code in the browser: pose timing, placing targets, scoring, rhythm by touch, inverse kinematics, beat-locked music, and dancing together over a network.
One line of arithmetic turns the clock into a pose number; modulo loops the routine; a smoothstep slides between poses.
02Placing the targets↗A coordinate frame built around the player: forward, right, mirroring, and scaling to the player's height.
03Scoring a pose↗Distance, holding, timing and squats decide a hit; grades, combo multipliers and ranks decide a round.
04Rhythm by touch↗A metronome in both controllers, a cue for the hand that must move, and pulses that quicken near the target.
05The coach's body↗Inverse kinematics: elbows and knees from hands and feet, with a hint for which way to bend.
06Beat-locked music↗A 16-step sequencer driven by the same clock as the poses, recorded from the game's own music code.
07Dancing together↗A shared beat clock, per-pose reports, a team combo, and what network latency does to it.
AI 01—05The AI, in five levels
How the coach asks an AI for a dance and turns the answer into moves: asking for data instead of code, checking every reply, a routine from a sentence, a call-and-response duet with your own body, and typing a prompt inside VR.
What the scene actually sends: your idea, the game's rules and an exact JSON format, through the course server so the key stays private.
02Never trust the answer↗Every reply is checked: the right number of poses, every hand within reach, at most one squat, a clean title.
03From a sentence to a routine↗The shared "thinking, ready, error" states, why an old answer is thrown away, and how both headsets start the new routine on the same pose.
04A duet with your own body↗Recording a phrase on the beat in body-relative numbers, and looping it with the AI's four-move answer.
05Typing inside VR↗A keyboard made of scene objects, hit-testing a beam against it, and why the prompt board was blank in the headset.
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.