feat(title): fade-in inicial de negre a escena (500 ms, configurable a ui.yaml)

This commit is contained in:
JailDesigner committed 2026-05-06 19:34:59 +02:00
1 parent 29cb4c2211
commit 1431f27cfa
6 files changed
+36

No files matched your search

+5
View File
@@ -61,4 +61,9 @@ class TitleScene : public Scene {
DebugConfig::StartingPlayers pending_players_{DebugConfig::StartingPlayers::BOTH};
std::optional<Transitions::Mosaic> fade_out_;
std::optional<Transitions::FadeToBlack> attract_fade_;
// Fade-in inicial: capa negra que s'esvaeix cap a la imatge de fons
// durant els primers `title.intro_fade_in_ms` ms. Sempre activa al
// ctor; un cop finished, `render()` pinta alpha=0 (no-op) la resta
// del cicle de l'escena.
Transitions::FadeToBlack intro_fade_;
};