diff --git a/fw/Core/Hitcon/App/DinoApp.cc b/fw/Core/Hitcon/App/DinoApp.cc index 85c3dd0..0ca672a 100644 --- a/fw/Core/Hitcon/App/DinoApp.cc +++ b/fw/Core/Hitcon/App/DinoApp.cc @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include @@ -170,6 +171,7 @@ bool DinoApp::dinoDied() { inline void DinoApp::gameOver() { show_score_app.SetScore(_score); + g_game_score.MarkScore(GameScoreType::GAME_DINO, _score); badge_controller.change_app(&show_score_app); } diff --git a/fw/Core/Hitcon/App/SnakeApp.cc b/fw/Core/Hitcon/App/SnakeApp.cc index d3ed9e8..cea6b2d 100644 --- a/fw/Core/Hitcon/App/SnakeApp.cc +++ b/fw/Core/Hitcon/App/SnakeApp.cc @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include @@ -190,6 +191,7 @@ void SnakeApp::Routine(void* unused) { if (_game_over) { show_score_app.SetScore(_score); + g_game_score.MarkScore(GameScoreType::GAME_SNAKE, _score); if (mode == MODE_MULTIPLAYER) { uint8_t code = PACKET_GAME_OVER; g_xboard_logic.QueueDataForTx(&code, 1, SNAKE_RECV_ID); diff --git a/fw/Core/Hitcon/App/TetrisApp.cc b/fw/Core/Hitcon/App/TetrisApp.cc index 4978c31..e8dfe8b 100644 --- a/fw/Core/Hitcon/App/TetrisApp.cc +++ b/fw/Core/Hitcon/App/TetrisApp.cc @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -87,6 +88,7 @@ void TetrisApp::OnXboardRecv(void *arg) { game.game_force_over(); show_score_app.SetScore(game.game_get_score()); + g_game_score.MarkScore(GameScoreType::GAME_TETRIS, _score); badge_controller.change_app(&show_score_app); break; @@ -174,6 +176,7 @@ void TetrisApp::periodic_task_callback(void *) { } show_score_app.SetScore(game.game_get_score()); + g_game_score.MarkScore(GameScoreType::GAME_TETRIS, _score); badge_controller.change_app(&show_score_app); break; }