PSPratyush Shivam

Draw a line. Get it home.

Junction: a game a five-year-old can play and an engineer can read.

Personal · 62 seconds

What the film shows

A one-minute film of Junction, a path-drawing game by Pratyush Shivam, made from one real round played with real pointer events. Cars, vans and trucks drive into a yard from all four sides and each one is drawn a path to the garage of its colour. Between the footage, diagrams drawn from the game's own code show a line becoming a list of points that snaps to its garage, every vehicle as a capsule with the engine looking 1.8 seconds ahead to put a warning between any pair about to touch, and the difficulty curve that opens new garages at 5, 13 and 24 delivered. The round ends at 35 delivered and a new best. The whole game is about 45 kB.

First published on LinkedIn ↗