Skip to content

The horde

For creatorsAdd-on 2.2.2+

You build a city crossroads at dusk where a third-person hero with a bat, a pistol and a rifle survives waves of zombies, each bigger than the last.

▶ Play

  • Click to capture the mouse. The mouse aims.
  • W A S D run. Shift sprints. Space jumps.
  • Click (or F) attacks. Hold the right mouse button to aim closer.
  • Q, the wheel, or 1 2 3 swap weapons.
  • After a game over, R or Enter plays again.
  1. Make the scene a third-person game. In Properties ▸ World ▸ Simulacrum ▸ Player, set Player to Third Person and Body to male-jacket (a wardrobe body). They write the scene tags player.controller = third and player.body = male-jacket. Add an empty named Spawn where the hero starts.

  2. Give it controls. In Properties ▸ World ▸ Simulacrum ▸ Input, press Add Action and pick Walk set (WASD + Space + Shift), then Fire (F / left mouse) and Aim (right mouse). Add two of your own: swap = keys:KeyQ, and again = keys:KeyR/Enter. Controls for your scene has the details.

  3. Build the block. Model the buildings, abandoned cars, barriers and planters as boxes, and give each one Add Component ▸ Shooter & Strategy ▸ Level Block, the same blocks as in the arena. These are walls to the hero. Any block standing on the ground and taller than a step is also a wall to the zombies, so the same boxes work for both.

  4. Make it a horde world. Add the scene tags:

    horde.map = 96,96
    horde.cell = 1
    horde.origin = -48,-48
    horde.grow = 30
    horde.minDist = 14
  5. Mark where waves come from. Put empties at the street ends and alley mouths, each with Add Component ▸ Shooter & Strategy ▸ Horde Spawn Point.

  6. Scatter supplies. Add ammo crates and first-aid kits, each with Add Component ▸ Items ▸ Pickup. A first-aid kit: pickup = health, pickup.amount = 40. An ammo crate: pickup = ammo, pickup.amount = 24, pickup.weapon = pistol. Set pickup.respawn to the seconds before it comes back.

  7. Model the weapons. Model a bat, a pistol and a rifle, each facing forward (+Y in Blender) with the grip at the origin. Name them Bat, Pistol and Rifle.

  8. Write the three tables. In Blender’s Text Editor, make data/weapons.json, data/zombies.json and data/waves.json, with the rows in The tables.

  9. Set the look. Dusk works well: low light, glowing windows and lamps, a little haze. See look and light.

  10. Press ▶ Play. Waves come from the street ends. Hold them off with the bat, and save the guns for when you are cornered: every shot brings the horde.

  • The camera rides over the hero’s right shoulder. When a wall comes between them, it pulls in at once, never through the wall, then eases back out. Aiming brings it closer and narrows the view.
  • The body faces where it runs, and turns to the aim while it fights or aims. Its arms hold each weapon: a pistol out in both hands, a rifle at the shoulder, a bat carried low and swung in an arc.
  • Guns shoot where the crosshair is. A body standing between the hero and the crosshair takes the bullet. A melee weapon swings the way the hero faces.
  • Noise. Guns are loud: every zombie within a gun’s noise turns toward the shot. The bat is silent. That is the game’s first choice.
  • Hunters don’t give up. A zombie that loses sight of you keeps hunting toward where you were for a while (walkers 20 s, runners 12 s, brutes 25 s).
  • Waves come from the spawn points, never within 14 m of the hero. Each body is born hunting the nearest hero, so a wave comes for you whether it sees you or not.
  • The fallen lie a while, then sink away.

Weapons (data/weapons.json):

id kind damage reach cooldown Hits noise ammo
bat melee, arc: 130 34 1.1 m 0.55 s cleave: 3; knocks back 0.9 m, dazes 0.6 s 0 -1 (endless)
pistol gun 30 35 m 0.28 s pierce: 1 22 m 48
rifle gun 24 50 m 0.11 s pierce: 2 35 m 120

Each row also has name, knock (metres), stagger (seconds), hotkey, grip (pistol, rifle or bat) and model (the Blender object’s name).

Zombies (data/zombies.json):

id speed hp damage cooldown sight tenacity clip scale
walker 1.25 60 8 1.2 16 20 Walk 1
runner 4.4 40 6 0.9 24 12 Run 0.97
brute 1.0 320 22 1.6 14 25 Walk 1.28

Each row also has name, radius, range (bite reach in metres), bodies (wardrobe body keys, comma-separated) and tint (a colour for those bodies). A cast column names the members’ zombie bodies from the licensed character library; signed out, or if one can’t load, the row’s wardrobe body is used, tinted.

Waves (data/waves.json): each row is a wave, with count, mix (walker:4,runner:1), every (seconds between bodies) and breath (seconds of rest before it). Start small (12 walkers) and grow (100, with runners and brutes mixed in). The last row repeats, horde.grow bodies larger each time.

Tag Values What it does
player.controller third The third-person hero
player.body a wardrobe body key The hero’s body
player.weapons default data/weapons.json The weapons table
player.weapons.start weapon ids, comma-separated; none What the hero starts with. Leave it out to start with every weapon
camera.dist · camera.height · camera.shoulder default 3.4 · 1.55 · 0.55 m Where the camera rides: behind, above the feet, to the right
camera.aimDist · camera.fov · camera.aimFov default 1.9 m · 62° · 48° Aiming: closer and narrower
horde.map W,H in cells Makes the scene a horde world, and sets the grid’s size
horde.cell metres, default 1 The size of a grid cell
horde.origin x0,z0 in metres The grid’s corner. Default: centred
horde.zombies · horde.waves default data/zombies.json · data/waves.json The tables
horde.grow default 10 Bodies added to each wave past the end of the table
horde.maxAlive default 220 The waves wait while this many stand
horde.minDist metres, default 14 No zombie is born this close to the hero
horde.spawn.radius metres, default 2 On a spawn point: how far from it bodies appear
pickup · pickup.amount · pickup.respawn · pickup.weapon health or ammo · amount · seconds · a weapon id A supply the hero walks over

Next: the horde on a real map.