diff --git a/data/lang/ba_BA.json b/data/lang/ba_BA.json index a579d2a..cb09597 100644 --- a/data/lang/ba_BA.json +++ b/data/lang/ba_BA.json @@ -26,6 +26,7 @@ "[GAME_TEXT] 6": "Temps!", "[GAME_TEXT] 7": "Endavant!", "[GAME_TEXT] 8": "1.000.000 de punts!", + "[GAME_TEXT] THANK_YOU": "Gracies!", "[HIGHSCORE_TABLE] CAPTION": "Millors puntuacions", diff --git a/data/lang/en_UK.json b/data/lang/en_UK.json index 3f1f2d9..af6a5d2 100644 --- a/data/lang/en_UK.json +++ b/data/lang/en_UK.json @@ -25,6 +25,7 @@ "[GAME_TEXT] 6": "Stop!", "[GAME_TEXT] 7": "Get Ready!", "[GAME_TEXT] 8": "1,000,000 points!", + "[GAME_TEXT] THANK_YOU": "Thank you!", "[HIGHSCORE_TABLE] CAPTION": "Best scores", diff --git a/data/lang/es_ES.json b/data/lang/es_ES.json index 9ca8d11..43c700e 100644 --- a/data/lang/es_ES.json +++ b/data/lang/es_ES.json @@ -25,6 +25,7 @@ "[GAME_TEXT] 6": "Tiempo!", "[GAME_TEXT] 7": "Adelante!", "[GAME_TEXT] 8": "1.000.000 de puntos!", + "[GAME_TEXT] THANK_YOU": "Gracias!", "[HIGHSCORE_TABLE] CAPTION": "Mejores puntuaciones", diff --git a/source/resource.cpp b/source/resource.cpp index efa4a20..85443c3 100644 --- a/source/resource.cpp +++ b/source/resource.cpp @@ -598,7 +598,8 @@ void Resource::createTextTextures() { {"game_text_powerup", Lang::getText("[GAME_TEXT] 4")}, {"game_text_one_hit", Lang::getText("[GAME_TEXT] 5")}, {"game_text_stop", Lang::getText("[GAME_TEXT] 6")}, - {"game_text_1000000_points", Lang::getText("[GAME_TEXT] 8")}}; + {"game_text_1000000_points", Lang::getText("[GAME_TEXT] 8")}, + {"game_text_thank_you", Lang::getText("[GAME_TEXT] THANK_YOU")}}; auto text = getText("04b_25"); for (const auto &s : strings) { diff --git a/source/sections/game.cpp b/source/sections/game.cpp index 3d7c7a3..7419ddd 100644 --- a/source/sections/game.cpp +++ b/source/sections/game.cpp @@ -153,6 +153,7 @@ void Game::setResources() { game_text_textures_.emplace_back(Resource::get()->getTexture("game_text_one_hit")); game_text_textures_.emplace_back(Resource::get()->getTexture("game_text_stop")); game_text_textures_.emplace_back(Resource::get()->getTexture("game_text_100000_points")); + game_text_textures_.emplace_back(Resource::get()->getTexture("game_text_thank_you")); // Texturas - Items item_textures_.clear(); @@ -1477,6 +1478,9 @@ void Game::handlePlayerContinueInput(const std::shared_ptr &player) { player->setPlayingState(Player::State::RESPAWNING); player->addCredit(); sendPlayerToTheFront(player); + // Crea letrero de THANK_YOU + const auto X = player->getPosX() + (player->getWidth() - game_text_textures_.at(7)->getWidth()) / 2; + createItemText(X, game_text_textures_.at(7)); } // Disminuye el contador de continuación si se presiona cualquier botón de disparo.