|
Aegis2D
Modular C++26 2D game engine for networked games
|
What an important sound tells the player, shown while it plays. More...
#include <aegis2d/render/sound_cues.hpp>
Public Attributes | |
| std::string | caption |
Short caption, such as "Enemy incoming" or "Low life". | |
| std::optional< Vec2 > | source = std::nullopt |
| Where the sound comes from, in logical pixels; nothing for a sound with no place (an alarm, a voice). | |
| Color | color {.r = 1.0F, .g = 1.0F, .b = 1.0F, .a = 1.0F} |
| Color of the caption. | |
| float | seconds = 2.0F |
| How long the cue stays, in seconds; it fades out during the last half second. | |
What an important sound tells the player, shown while it plays.
| std::string aegis2d::render::SoundCue::caption |
Short caption, such as "Enemy incoming" or "Low life".
| Color aegis2d::render::SoundCue::color {.r = 1.0F, .g = 1.0F, .b = 1.0F, .a = 1.0F} |
Color of the caption.
| float aegis2d::render::SoundCue::seconds = 2.0F |
How long the cue stays, in seconds; it fades out during the last half second.
| std::optional<Vec2> aegis2d::render::SoundCue::source = std::nullopt |
Where the sound comes from, in logical pixels; nothing for a sound with no place (an alarm, a voice).