feat(intro): delay de spawn independent per al segon jugador en mode BOTH

This commit is contained in:
JailDesigner committed 2026-04-26 18:55:30 +02:00
1 parent 99eb42b319
commit 8e2865efbd
5 files changed
+55 -29

No files matched your search

+3
View File
@@ -43,6 +43,9 @@ namespace RoomFsm {
cfg.intro_text_hold_ms = readChildInt(n, "text_hold_ms", cfg.intro_text_hold_ms);
cfg.intro_text_exit_ms = readChildInt(n, "text_exit_ms", cfg.intro_text_exit_ms);
cfg.player_spawn_delay_ms = readChildInt(n, "player_spawn_delay_ms", cfg.player_spawn_delay_ms);
// Per defecte el segon jugador cau alhora que el primer.
// El YAML pot trencar la simultaneïtat fixant un valor propi.
cfg.player2_spawn_delay_ms = readChildInt(n, "player2_spawn_delay_ms", cfg.player_spawn_delay_ms);
cfg.intro_text_line_gap_px = readChildInt(n, "line_gap_px", cfg.intro_text_line_gap_px);
}
if (yaml.contains("room_outro")) {