Enemies and bosses¶
An enemy in enemies.json builds on a game family. It keeps the family's
driving, attacks, collisions and takedown rules; the row sets numbers, look
and spawns.
base |
Family | Arrives |
|---|---|---|
patrol |
Cop car | On a road ahead |
helicopter |
Police helicopter | Off a screen corner |
officer, soldier |
On foot | On a road just off screen |
tank |
Army tank | Where tanks arrive |
[
{
"id": "warlord.rifleman",
"base": "soldier",
"hp": 10,
"spawn": {
"heat": 3,
"every": 30,
"count": 3,
"max_alive": 6
}
}
]
weaponadds aimed police rounds on top of the family's attack.behaviornames agame.enemyfrom a code mod to steer it, change the damage it takes or act when destroyed.mapslimits spawning to those maps.- Helicopters and tanks keep their family's speed.
Bosses¶
Add boss to get the boss bar, a minimap mark, camera lean, death blasts and
optional music:
{
"id": "warlord.warlord",
"base": "tank",
"hp": 400,
"spawn": {"heat": 4, "every": 120},
"boss": {
"title": "THE WARLORD",
"intro": "WARLORD INBOUND",
"music": "mixtape_brute_force",
"phases": [
{
"at": 0.6,
"weapon": {
"every": 1.2,
"range": 240,
"lanes": 3,
"spread": 14
}
},
{
"at": 0.25,
"weapon": {
"every": 0.6,
"range": 260,
"lanes": 5,
"spread": 12
}
}
]
},
"behavior": "warlord.warlord"
}
- One at a time. A boss arrives alone, once per run, never during another boss or after the map's own boss or escape starts. It is never culled off screen.
- Phases start at a share of health left. They can change
weaponandspeed, and call the behaviour'sphase(s, e, n). - Music: any track works. A music row with
"boss": truestays out of the shuffle and plays only in its fight.
Reference: enemies.json. Examples: warlord, sniper_cars.