Spawning (state)#

Cooldown state for when an entity has recently spawned. It grants it invincibility, while also applying a grey flickering grey filter to its render.

It is added specifically to Player entities when spawning (in their constructor, currently for a fixed duration of 2000ms).

Note

Maybe add a gif of it in effect.

struct Spawning : public Cooldown#

Public Functions

inline Spawning(Uint64 cool_down, Uint64 flicker_timer = 200, std::array<int, 3> sdl_colour_mask = {128, 128, 128}, int sdl_alpha_mask = 128)#
virtual void init() override#
virtual void custom_update() override#