Behavior and movement
How enemies find you, how they go around obstacles and how bosses decide what to do.
Enemies in Bane have a single goal – you. Right after they materialize, they know where you are and take the shortest path to you around walls and objects. Bosses also alternate attacks in a fixed pattern with a telegraph and an enrage phase.
How it works
Whom enemies follow
Always only the player – never your pet. If you are invisible (the Phantom artefact):
- regular enemies stand still,
- Eye watcher stops shooting and homing projectiles fly straight,
- bosses behave as if you were far away and pick ranged attacks.
Area attacks (falling rocks, jump landings, beams) still hit you even when you are invisible.
Pathfinding
Enemies "sense" the distance to you within a radius of about 18 tiles (across a whole room). The path map is calculated separately for each enemy size: a large enemy (rat, golem, stilt spider) is sent only through gaps it can really fit through, while a small one can go through a narrow crack. If an enemy sees your path as clear for the width of its body, it walks straight to you; otherwise it walks straight to the farthest point of its path that it can reach in a straight line, so it turns smoothly and does not zigzag between tiles. The map is recalculated whenever you move (at most 10 times per second), so you cannot shake an enemy off by hiding around a corner. An enemy whose only path is narrower than itself tries to squeeze through the path made for smaller enemies.
Steering and spacing in a crowd
Exactly which way an enemy goes at a given moment is decided by its steering (context steering): it scores each of 16 directions around itself by how well it leads to the target, and subtracts points from directions where a wall or another enemy is close ahead (it looks ahead about a third of a second of walking). It picks the best direction, and when a wall is right in front of it, it slows down instead of running into it. It steps aside for another enemy only when that enemy stands right in its way and is not going the same direction; behind one that goes the same way, it simply follows. It does not back off or jump away. It changes direction and speed smoothly over a fraction of a second, so it turns in an arc and does not twitch.
Spots around the player
So that enemies do not push each other for one spot at your side, each one has its own spot around you. There are 16 spots in a circle around the player, each so close that an enemy standing on it touches you (and hurts you). An enemy that comes within about 3.5 tiles takes the nearest free spot on the side it is coming from, where its body fits next to the others. It walks there and stands until you get away from it (more than about 5.5 tiles, for example when you run away). An enemy that gets no spot because it is crowded around you slowly circles you about two tiles away and waits for one to free up. About 4–6 enemies fit around you, depending on their size. Shooting enemies do not take spots; they keep their own distance.
Enemies do not collide with each other physically (they pass through one another); they keep their distance only through their steering and the spots around you. They collide normally with walls, objects and furniture.
Getting stuck
If an enemy still gets stuck (for example in a crowd), it avoids the direction it was pushing for 0.6 s and tries to go around the obstacle from the side. If it gets stuck again, it tries the other side.
Facing
Enemies turn to face you. The exception is those that are in the middle of a dash – they keep the direction of the attack.
Time slow
The time slow artefact slows down all enemies, their attacks and their projectiles, but not you.
States that change behavior
| State | When it happens | What it does |
|---|---|---|
| Materializing | on appearing | invisible → visible, cannot be hit, does nothing |
| Rooted | attack wind-up, spitting a web | stands still, but the attack keeps running |
| Frozen | 4 hits with ice ammo | stands still, does not attack, does not deal damage |
| Chilled | a hit with ice ammo | half speed |
| Dash | boss attacks, slime jump | flies in a fixed direction |
| Closed | Mimic in the Rest attack | immune to damage |
| Hit | every hit | red outline for 0.3 s |
| Poisoned | poison puddle | green outline, 1 damage per second |
How bosses decide
Stone golem, Argus, Sewer ogre, Hellhound and Mimic share the same pattern:
- Movement – the boss follows you (Argus only hovers) and waits for the pause between attacks to end.
- Choosing an attack – random, but influenced by your distance and the number of helpers. It never uses the same attack twice in a row.
- Wind-up – the boss stops and plays an animation that tells you what is coming.
- Attack – a shot, a beam, a rock rain, a dash...
- Recovery – a short pause, then back to movement.
- Enrage – when the boss drops to half HP, it turns red, speeds up, shortens its pauses and makes some attacks stronger.
Spider king and King slime are simpler: their abilities run in a loop on timers, with no wind-ups and no enrage.
Contents
| Movement type | Enemies |
|---|---|
| Chaser | Rat, Snake, Bat, Demon eye, spiderlings, Bloated spider, Mini golem, Red slime, Spider king, King slime, other bosses between attacks |
| Chaser with a dash | Ghost |
| Keeps its distance | Slime (stops below ~4.5 tiles, backs off below 3 tiles) |
| Stands still | Eye watcher, Argus eye (orbits Argus) |
| Jumper | Stilt spider |
| Hops | Saliva slime |
Tips and connections
- Slime is the only regular enemy that runs away from you – you have to go after it.
- Invisibility (Phantom) is the best way to get rid of crowd pressure, but it does not protect you from the bosses' area attacks.
- Ice ammo and freezing take an enemy out of the fight completely, including its contact damage. See Guns.
- Walls and solid objects in the dungeon are obstacles that enemies have to go around.
Known inconsistencies
- Enemies have no perception range – they see you right after materializing, even through walls.
- Outside a radius of about 18 tiles, enemies walk straight at you, even if a wall is in their way.
- An enemy that fits nowhere (for example a giant stilt spider in a narrow corridor) can still get stuck.
- Boss attacks depend on the place where the boss appeared, not on the run seed – so with the same seed they may not repeat the same way.
Ideas for expansion
- A perception range and "waking up" enemies when they see you.
- Group behavior – surrounding, flanking – instead of everyone taking the same path.
- More enemies that keep their distance or circle (Eye watcher, Demon eye).
- Convert Spider king and King slime to the same pattern with wind-ups and enrage as the other bosses.