1#ifndef NANOMMO_CLIENT_DEATH_SCREEN_H_
2#define NANOMMO_CLIENT_DEATH_SCREEN_H_
15 static constexpr float kDim = 0.6f;
21 void Update(
float seconds,
bool dead);
24 float dark()
const {
return dark_; }
29 bool Build(
bool dead, uint32_t wait_ms)
const;
33 bool was_dead_ =
false;
static constexpr float kDarken
In seconds: how long the world takes to darken, and to come back.
void Update(float seconds, bool dead)
Moves on by the frame's time, from whether the player's dead.
static constexpr float kDim
How dark the world gets while they're dead, from 0 to 1.
bool Build(bool dead, uint32_t wait_ms) const
float dark() const
How dark the world is, from 0 to 1.
static constexpr float kReturn