Skip to content

RespawnOptions beta ​

Interface of @v12-engine/engine

ts
export interface RespawnOptions

What a game's heroes do once fallen (respawnPack)

Members ​

at ​

ts
at?: (world: World, hero: Entity) => Vec2 | undefined;

Where it comes back: its side's home (homeOf) when left out, where it fell when there is none

heroes ​

ts
heroes?: (world: World, hero: Entity) => boolean;

Which heroes come back by themselves: all of them when left out

time ​

ts
time?: (world: World, hero: Entity) => number;

Seconds a fallen hero waits to come back: 4 and 2 more a level when left out (6 at level 1, 24 at level 10)