Pedestrian simulator

Walky

Draw walls, mark a goal, paint a crowd, and watch it find its way.

A 2016 Java and Swing school project by Pascal Andermatt and Jan Huber, rebuilt twice over: a native iOS app, and a page that runs the whole simulation in your browser with no backend behind it.

Built with love in Zurich, Switzerland πŸ‡¨πŸ‡­

Live β€” 160 pedestrians, routing themselves, right now.

What it does

A room, a crowd, and no instructions.

Every pedestrian routes itself. Nothing is scripted, and nothing is sent anywhere.

Draw the world

Walls, borders and goals, placed with a pointer or a finger. Routes come from Dijkstra over a visibility graph, rebuilt from the geometry every time you change it.

Paint a crowd

Each pedestrian picks its own next step and takes the colour of the goal it is heading for. It turns black when it arrives β€” the way the 2016 original drew it.

Share the map as a link

The whole scenario is deflated into the URL fragment. A fragment is never sent in the request, so no backend sees your map β€” because there is no backend.

On iPhone

Draw it, measure it, or import it.

  • Walky on an iPhone, blueprint theme: a pale crowd streaming through a gap between a blue and a cyan wall on a navy ground, heading for a yellow goal below.

    Draw a room, paint a crowd, and watch two hundred people find the goal.

  • Walky on an iPhone showing Zurich's old town imported from OpenStreetMap at life size. An orange line runs from Spitalgasse down Froschaugasse and across the open ground to Untere ZΓ€une, labelled 367 metres on foot, and a blue line takes the pavements the long way round by Niederdorfstrasse and Rindermarkt, labelled 441 metres, 1.20 times.

    Price the walk between two points: 367 m through Zurich's old town, where the pavements take 441 m.

  • Walky on an iPhone showing Siena's Piazza del Campo imported from OpenStreetMap: the shell-shaped square ringed by coloured buildings, with a crowd leaving it through the lanes toward a goal to the north-west.

    Type Piazza del Campo, Siena β€” or any address β€” and walk a crowd through it.

Both as a Swift app and a web app.