← All labs

CITY RUNNER

An endless runner on the real map of Manhattan
Google Maps · three.js · WebGL overlay

Labs / 11

Live game coming soon

Live game coming soon

(Overview)

An endless runner where the level is Google Maps.

City Runner sends you sprinting down Broadway from Times Square. The city isn't a model built for the game: it's the live Google map, tilted over, with its own 3D buildings, street names and shops. The runner, the track, the coins and the barriers are drawn on top, in the same 3D space.

The runner keeps moving on their own. You switch lanes, jump the low barriers and collect coins for as long as you can last. It's shown here as a film for now, and a playable version is on the way.

Type
Browser game, shown here as a film
The city
Google Maps, with its own 3D buildings
Game layer
three.js, drawn inside the map's 3D view
Course
About 2 km south from Times Square
Character
An original low-poly runner
Status
Playable build working, public version coming soon

(The controls)

  1. ←Left a lane, or A
  2. →Right a lane, or D
  3. ↑Jump with the up arrow or Space
  4. ↓Slide with the down arrow or S
01

Borrow the city

The map is Google's everyday one, the kind that shows grey 3D blocks when you tilt it. Nothing about New York is stored in the game. Even the chase camera is just the map being moved every frame: centred a few metres ahead of the runner, turned to face the way they're heading, and tilted as far as the map allows.

02

Draw inside the map

Google Maps lets a page draw its own 3D objects into the map's view. The game works in plain metres from a fixed point in Times Square, and the map places that in the real world on every frame. That's why the track sits exactly on Broadway, and why buildings pass in front of it where they should.

03

Make it a fair run

The route is a smooth curve through real points along the avenues, split into three lanes. Coins and barriers are laid out from a fixed pattern, so the course is the same every time and you can learn it. Low barriers have to be jumped. Tall blocks have to be dodged.

Previous lab: Threshold All labs