What the player's screen shows besides the world: particles and trails, lightning beams, the colour washes of damage, bonuses, power-ups and liquids, the kick of being hit, the pain face, printed messages, the intermission and the closing text.
effects = ElixirQuake.Effects.handle(effects, event, context)
effects = ElixirQuake.Effects.run(effects, seconds, now)context is %{time:, origin:, angles:}, the player's position and view.
Summary
Functions
Being hurt: armor and blood points taken, from from.
Take in one server event.
The view kick of being hit at now, as {pitch, roll} in degrees.
Move everything on by seconds to now.
The sounds taken in since the last call, oldest first, and the effects without them.
Lay trails behind the moving things that leave them, as {entity, origin, model_flags}.
The colour washes in force, as [{{r, g, b}, percent}], given the player's items and
the contents at the eye.
Types
Functions
Being hurt: armor and blood points taken, from from.
Take in one server event.
The view kick of being hit at now, as {pitch, roll} in degrees.
Move everything on by seconds to now.
The sounds taken in since the last call, oldest first, and the effects without them.
Lay trails behind the moving things that leave them, as {entity, origin, model_flags}.
The colour washes in force, as [{{r, g, b}, percent}], given the player's items and
the contents at the eye.