Skip to content
1        10        20        30        40        50        60        70        80        90        100       110       120       130       140       150       160       170       180       190       200       210       220       2301export const RESOURCES = {2  scrap: { name: 'Scrap', sell: 10 },3  powder: { name: 'Gunpowder', sell: 25 },4  steel: { name: 'Steel', sell: 60 },5  optics: { name: 'Optics', sell: 150 },6};78export const AMMO = {9  '22': { name: '.22 LR', craft: { scrap: 2, powder: 1 }, yield: 10 },10  '556': { name: '5.56mm', craft: { scrap: 3, powder: 2 }, yield: 10 },11  '308': { name: '.308 Win', craft: { steel: 2, powder: 2 }, yield: 10 },12  '50': { name: '.50 BMG', craft: { steel: 4, powder: 3 }, yield: 10 },13  cell: { name: 'Power Cell', craft: { steel: 1, optics: 1 }, yield: 2 },14};1516export const WEAPONS = {17  hunter: {18    action: 'bolt',19    name: 'Hunting Rifle',20    desc: 'Bolt-action. Your starting rifle. Reliable headshots.',21    ammo: '308',22    damage: 70,23    cooldown: 1.2,24    mag: 5,25    reload: 2.4,26    velocity: 880,27    zoom: [4, 6],28    sway: 1.0,29    spread: 0.0004,30    silent: false,31    color: 0x6b4a2b,32    length: 1.1,33    cost: null,34  },35  dmr: {36    name: 'DMR-7 Marksman',37    desc: 'Semi-auto designated marksman rifle.',38    ammo: '308',39    damage: 58,40    cooldown: 0.5,41    mag: 10,42    reload: 2.6,43    velocity: 840,44    zoom: [4, 6, 8],45    sway: 0.8,46    spread: 0.0003,47    silent: false,48    color: 0x2f3b2f,49    length: 1.2,50    cost: { money: 600, steel: 8, powder: 6, scrap: 10 },51  },52  ghost: {53    action: 'bolt',54    name: 'Ghost .22 Suppressed',55    desc: 'Subsonic and suppressed. Shots do not alert nearby zombies.',56    ammo: '22',57    damage: 42,58    cooldown: 1.0,59    mag: 8,60    reload: 2.2,61    velocity: 330,62    zoom: [6, 10],63    sway: 0.7,64    spread: 0.0003,65    silent: true,66    color: 0x1d1d22,67    length: 1.0,68    cost: { money: 1200, steel: 6, optics: 3, scrap: 8 },69  },70  carbine: {71    name: 'AR Carbine 5.56',72    desc: 'Fast-cycling carbine. Low damage, high volume.',73    ammo: '556',74    damage: 34,75    cooldown: 0.18,76    mag: 30,77    reload: 2.0,78    velocity: 920,79    zoom: [2, 4],80    sway: 1.2,81    spread: 0.0006,82    silent: false,83    auto: true,84    color: 0x3a3f2a,85    length: 0.9,86    cost: { money: 900, scrap: 20, powder: 10, steel: 4 },87  },88  lrm: {89    action: 'bolt',90    name: 'LRM-50 Magnum',91    desc: 'Heavy .50 BMG. Hits hard at extreme range.',92    ammo: '50',93    damage: 210,94    cooldown: 2.4,95    mag: 3,96    reload: 3.6,97    velocity: 950,98    zoom: [8, 12, 16],99    sway: 1.6,100    spread: 0.0003,101    silent: false,102    color: 0x4a2f2f,103    length: 1.4,104    cost: { money: 1800, steel: 25, optics: 4, powder: 10 },105  },106  railgun: {107    name: 'Prototype Railgun',108    desc: 'Nearly flat trajectory. Power cells only.',109    ammo: 'cell',110    damage: 400,111    cooldown: 3.0,112    mag: 1,113    reload: 3.0,114    velocity: 2400,115    zoom: [12, 16, 24],116    sway: 1.4,117    spread: 0.0002,118    silent: true,119    color: 0x1f3a5a,120    length: 1.5,121    cost: { money: 6000, steel: 60, optics: 20 },122  },123};124125export const WEAPON_ORDER = ['hunter', 'dmr', 'ghost', 'carbine', 'lrm', 'railgun'];126127export const MODS = {128  barrel: {129    name: 'Barrel',130    desc: '+20% damage per level',131    max: 3,132    cost: (lvl) => ({ money: 250 * (lvl + 1), steel: 2 * (lvl + 1) }),133  },134  trigger: {135    name: 'Trigger',136    desc: '-15% cooldown per level',137    max: 3,138    cost: (lvl) => ({ money: 200 * (lvl + 1), powder: 2 * (lvl + 1) }),139  },140  stock: {141    name: 'Stock',142    desc: '-20% sway and spread per level',143    max: 3,144    cost: (lvl) => ({ money: 200 * (lvl + 1), scrap: 3 * (lvl + 1) }),145  },146  scope: {147    name: 'Scope',148    desc: '+2x max magnification per level',149    max: 3,150    cost: (lvl) => ({ money: 400 * (lvl + 1), optics: lvl + 1 }),151  },152  mag: {153    name: 'Magazine',154    desc: '+25% magazine capacity per level',155    max: 3,156    cost: (lvl) => ({ money: 300 * (lvl + 1), scrap: 4 * (lvl + 1) }),157  },158};159160export const BASE_UPGRADES = {161  radar: {162    name: 'Radar Dish',163    desc: 'Shows zombies within 300 m on your HUD radar.',164    cost: { money: 800, steel: 6, optics: 2 },165  },166  reloadBench: {167    name: 'Reloading Bench',168    desc: '-20% reload time for all weapons.',169    cost: { money: 500, scrap: 10 },170  },171  tripod: {172    name: 'Tripod Mount',173    desc: '+3 s breath hold and -15% sway.',174    cost: { money: 600, steel: 4 },175  },176};177178export const ZOMBIES = {179  walker: {180    name: 'Walker',181    hp: 60,182    speed: [0.6, 1.2],183    scale: 1,184    money: [80, 120],185    drops: { scrap: [1, 2], powder: [0, 1] },186    weight: 60,187    skin: 0x6f8f57,188    cloth: 0x3d4a5c,189    lean: 0.28,190    bulk: 1,191    eye: 0xd9ff66,192    lines: ['Down.', 'Another one for the pile.', 'Never even turned around.', 'Slow ones are easy.'],193  },194  runner: {195    name: 'Runner',196    hp: 40,197    speed: [2.2, 3.2],198    scale: 0.95,199    money: [120, 170],200    drops: { scrap: [0, 1], powder: [1, 2] },201    weight: 25,202    skin: 0x9aa873,203    cloth: 0x7a3a2a,204    lean: 0.5,205    bulk: 0.85,206    eye: 0xff4a3a,207    lines: ['Sprinter down.', 'Too fast to keep up.', 'That one will not run again.'],208  },209  brute: {210    name: 'Brute',211    hp: 220,212    speed: [0.5, 0.8],213    scale: 1.35,214    money: [300, 400],215    drops: { steel: [1, 2], optics: [0, 1] },216    weight: 15,217    skin: 0x4f6b44,218    cloth: 0x2a2a2a,219    lean: 0.12,220    bulk: 1.4,221    eye: 0xffa030,222    lines: ['Big one down.', 'That was a lot of body.', 'Heavy. Not heavy enough.'],223  },224};225226export const CONTRACTS = [227  { id: 'c1', text: 'Kill 10 walkers', metric: 'kills_walker', target: 10, reward: { money: 300 } },228  { id: 'c2', text: 'Land 5 headshots', metric: 'headshots', target: 5, reward: { money: 400, steel: 5 } },229  { id: 'c3', text: 'Kill a zombie at 150 m or more', metric: 'longestKill', target: 150, reward: { money: 500, powder: 10 } },230  { id: 'c4', text: 'Kill 3 brutes', metric: 'kills_brute', target: 3, reward: { money: 800, steel: 10, optics: 2 } },231  { id: 'c5', text: 'Kill 50 zombies', metric: 'kills', target: 50, reward: { money: 1000, scrap: 20 } },232  { id: 'c6', text: 'Kill a zombie at 250 m or more', metric: 'longestKill', target: 250, reward: { money: 1500, optics: 5 } },233  { id: 'c7', text: 'Kill 25 runners', metric: 'kills_runner', target: 25, reward: { money: 700, powder: 15 } },234  { id: 'c8', text: 'Fire 200 shots', metric: 'shots', target: 200, reward: { money: 600, scrap: 15 } },235];236237// Maps you can play, picked on the main menu. Each map keeps its own run until you take the pill there.238// population: zombies alive at once. rigRange: zombies closer than this get a full body, the rest are drawn as silhouettes.239// spawnRange: how far from you new zombies may appear. insideChance: share that spawn inside buildings.240// warmth: the map has body warmth, which drains outside the shack and dies at zero.241export const MAPS = [242  {243    id: 'street',244    name: 'The Street',245    desc: 'An abandoned city block at dusk. Your sniper nest is on the top floor of the building in the middle.',246    population: 110,247    rigRange: Infinity,248    spawnRange: [30, 260],249    insideChance: 0.35,250    winKills: 50,251    warmth: false,252    win: { title: 'THE STREET IS CLEAR', text: 'You have put down enough of them to clear the block. The rest can wait.' },253  },254  {255    id: 'wall',256    name: 'The Wall',257    desc: 'A concrete wall twelve metres high with a thousand dead in the forest beyond it. Your shack is on top, with a stove, a workbench and a slit to shoot through. Outside the shack you lose warmth, and if it runs out you die.',258    population: 1000,259    rigRange: 50,260    spawnRange: [12, 320],261    insideChance: 0,262    winKills: 100,263    warmth: true,264    win: { title: 'THE WALL HOLDS', text: 'A hundred of them down, and the forest is a little quieter for it. The rest can wait.' },265  },266];267268// Body warmth on maps with `warmth`. It drains outside the shack and comes back by the stove.269export const WARMTH = {270  max: 100,271  lossPerSec: 1.4, // about a minute from full to dead on the walkway272  gainPerSec: 14, // about seven seconds from dead to full by the stove273  warnAt: 30, // the game warns you when you drop under this274};275276// Prestige: points come from play and bank when you take the pill. Taking it after a win also277// raises the prestige level, which makes zombies weaker in every later run.278export const PRESTIGE = {279  streak: 5, // headshots in a row for one point280  streakPoints: 1,281  luckyChance: 0.03, // chance that any kill pays a point282  luckyPoints: 1,283  hpCut: 0.05, // zombies lose this share of their HP per level...284  maxHpCut: 0.4, // ...up to this much.285};286287// Perks bought with prestige points in the main menu's shop. They apply at the start of every run after you buy them.288// `weapon` and `upgrade` grant an item owned from the start; `cash` and `ammo` add per level.289export const PERKS = {290  dmr: { name: 'DMR-7 Marksman', desc: 'Start every run owning the DMR-7.', cost: 2, max: 1, weapon: 'dmr' },291  carbine: { name: 'AR Carbine 5.56', desc: 'Start every run owning the AR Carbine.', cost: 2, max: 1, weapon: 'carbine' },292  ghost: { name: 'Ghost .22 Suppressed', desc: 'Start every run owning the Ghost .22.', cost: 3, max: 1, weapon: 'ghost' },293  lrm: { name: 'LRM-50 Magnum', desc: 'Start every run owning the LRM-50.', cost: 4, max: 1, weapon: 'lrm' },294  railgun: { name: 'Prototype Railgun', desc: 'Start every run owning the Railgun.', cost: 6, max: 1, weapon: 'railgun' },295  radar: { name: 'Radar Dish', desc: 'Start every run with the Radar Dish installed.', cost: 2, max: 1, upgrade: 'radar' },296  reloadBench: { name: 'Reloading Bench', desc: 'Start every run with the Reloading Bench installed.', cost: 2, max: 1, upgrade: 'reloadBench' },297  tripod: { name: 'Tripod Mount', desc: 'Start every run with the Tripod Mount installed.', cost: 2, max: 1, upgrade: 'tripod' },298  cash: { name: 'Head start', desc: '+$400 starting cash per level.', cost: 1, max: 3, cash: 400 },299  ammo: { name: 'Stocked', desc: '+10 rounds of every ammo type at the start, per level.', cost: 1, max: 3, ammo: 10 },300};301302// The street's sniper nest, workbench and pill table. The wall has its own in wall.js.303export const NEST = { x: 3, z: 0, feet: 7, yaw: Math.PI };304export const WORKBENCH = { x: -6.5, z: -4 };305// The pill table in the sniper nest. Taking the pill ends the run and returns you to the main menu.306export const PILL = { x: 1.4, z: -1.4 };307308export const START = {309  money: 300,310  resources: { scrap: 6, powder: 4, steel: 0, optics: 0 },311  ammo: { '308': 10, '22': 0, '556': 0, '50': 0, cell: 0 },312};313314// Shown on the pause screen. Short, practical, and a bit of the mood.315export const TIPS = [316  'Hold Shift while scoped to steady your breath. It recharges when you let go.',317  'Bullets drop with distance. Aim high on long shots, or buy a better scope.',318  'Headshots pay double and hit hardest.',319  'Gunshots carry about 220 m. Suppressed weapons do not wake anyone.',320  'The dead cannot touch you. Take your time.',321  'Brutes soak up 220 damage. Bring the LRM.',322  'A kill at 250 m pays about twice what the same kill pays at point-blank range.',323  'Sell salvage you do not need at the trader. Mods are what make the difference.',324  'The Radar Dish shows zombies within 300 m.',325  'A shot makes nearby zombies turn toward the sound and freeze for a while.',326];