diff --git a/data/locale/ca.yaml b/data/locale/ca.yaml index 21e1767..3202ff7 100644 --- a/data/locale/ca.yaml +++ b/data/locale/ca.yaml @@ -27,6 +27,9 @@ hud: title: press_start: "PREMEU START PER JUGAR" +demo: + banner: "MODE DEMO - PREMEU START" + game_screen: game_over: "FI DEL JOC" continue: "CONTINUAR" diff --git a/data/locale/en.yaml b/data/locale/en.yaml index 111c936..9be2fdb 100644 --- a/data/locale/en.yaml +++ b/data/locale/en.yaml @@ -26,6 +26,9 @@ hud: title: press_start: "PRESS START TO PLAY" +demo: + banner: "DEMO MODE - PRESS START" + game_screen: game_over: "GAME OVER" continue: "CONTINUE" diff --git a/source/game/scenes/game_scene.cpp b/source/game/scenes/game_scene.cpp index bf20482..28365e5 100644 --- a/source/game/scenes/game_scene.cpp +++ b/source/game/scenes/game_scene.cpp @@ -917,6 +917,12 @@ void GameScene::drawScoreboard() { .x = scoreboard_zone.w / 2.0F, .y = scoreboard_zone.y + (scoreboard_zone.h / 2.0F), }; + // En mode demo (attract) el marcador no té sentit: substituïm puntuacions i + // vides per un rètol que indica que és una demo i convida a jugar. + if (match_config_.mode == GameConfig::Mode::DEMO) { + text_.renderCentered(Locale::get().text("demo.banner"), CENTER, SCALE, SPACING); + return; + } Systems::InitHud::drawScoreboardSegmentsAt(text_, buildScoreboardSegments(), CENTER, SCALE, SPACING); }