Skip to content
← all writing

Gen Zombie: A Four-Player Zombie Shooter in Real OpenStreetMap Streets

  • godot
  • game-dev
  • webassembly
  • multiplayer
  • webrtc
  • openstreetmap
Gen Zombie: A Four-Player Zombie Shooter in Real OpenStreetMap Streets

Gen Zombie is a first-person wave shooter that runs in a browser tab. You play it at zombie.bobatron.com. There is no install, no account, and no launcher. Four people can share one run with a short room code. The name is a working title.

The game is built in Godot 4.7 and exported to the web. The city, the horde, the weapons, and the voice chat all run in that browser build. The first visit downloads the game, and later visits come from cache.

The maps are real streets

The city is not a box of hand-placed walls. Building footprints come from OpenStreetMap. A Blender script extrudes each building to its real height. Roads and sidewalks follow the OSM centrelines, with width set by road class.

The Minneapolis block covers South 6th to South 9th Street, Hennepin to Nicollet. That block is 1.2 km by 670 m. It holds 115 buildings and about 27k triangles, with real heights up to 151 m. The IDS Center, Orchestra Hall, and the State and Orpheum theatres are all in it.

A second map puts the same systems around the Eiffel Tower in Paris. The lobby picks the city, and a URL parameter can pick it too. Paris is the default. The Paris navigation mesh is prebaked. Minneapolis bakes its mesh at runtime in about five seconds.

One body, many zombies

Every zombie starts from one model. At spawn the game varies height and build, gait phase, skin tone, and grey streaks in hair or beard. A baked mask tells the shader which texels are skin, hair, or beard, so the colours land in the right place. Complexion is walked across a fixed palette, so each wave gets a dark end and a light end instead of four mid-browns.

There are five body classes: walkers, runners, and three variants with their own speed, health, and damage. Runners appear from wave 2 and take a growing share of each spawn. Death is procedural. Limbs go slack first, then the body takes one of four falls, the feet skid, and one small bounce settles the mass. Corpses leave blood decals, lie for 16 to 26 seconds, and sink out of sight. At most 12 lie at once.

The belt and the wave

You carry a primary, a sidearm, and three pockets: medkit, food, and grenade. The armoury has a pump shotgun, a pistol, a carbine, and a sawn-off. Ammo lives in pockets by type, not on the gun. Zombies drop loot, and you can swap guns off the street.

Waves start at five bodies and add three each wave. Special classes join as the count climbs. At most 22 are alive at once, and 14 on the web build. Survive five waves and the run ends in your favour. A straggler rule pulls in the last bodies after 30 seconds, so a wave cannot hang on one zombie stuck behind a wall.

Co-op with voice

A room is a short code. Up to four players join, and the host owns the simulation. The host streams zombie positions at 10 Hz, owns deaths and loot, and runs the wave director. Clients render puppets and report hits upward. One horde stays in sync on four screens.

Voice is proximity chat. Hold T to talk, and volume and filtering follow distance and walls. The audio path is browser WebRTC and WebAudio. Cloudflare TURN credentials are minted when a room opens, so a bad key degrades to STUN instead of blocking the room. No plugin and no app.

Shipping a Godot game to the browser

The web export uses the gl_compatibility renderer and a single-threaded build. Browser threading is not available everywhere. The web shell caps device pixel ratio, lowers shadow size and physics rate, and uses decimated character models. A performance pass measured frame gaps in a real browser instead of guessing from code.

Hosting is Cloudflare R2 behind a Worker. Pages caps a file at 25 MiB, and the Godot wasm is larger, so R2 holds the files and the Worker serves them. The game pack is a single download. Controller support works on both desktop and web.

Feature What ships
Engine Godot 4.7, web export, gl_compatibility
Maps Paris and a downtown Minneapolis block from OpenStreetMap
Players 1 to 4, room code, host-authoritative horde
Voice Proximity chat over WebRTC and WebAudio
Run Five waves, four weapons, loot drops, medkits, grenades
Play zombie.bobatron.com

Play

Open zombie.bobatron.com in a desktop browser. Pick a call sign, host a room, or join with a friend's code. Solo is one click away. Hold T to talk, and the lobby shows the controls for keyboard and gamepad.

Termagotchi
_

Ryan Underdown

Autodidact. Rarely listens to advice.

Follow on X @catamarammed or GitHub @underdown