1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:37:47 +00:00

Snake: Show message box on game over

Previously the game would immediately reset on game over, but now it'll
pause the game and show a message box with your score.
This commit is contained in:
matcool 2022-10-01 15:52:53 -03:00 committed by Andreas Kling
parent 67300af248
commit cb9b004ff8
2 changed files with 16 additions and 0 deletions

View file

@ -68,6 +68,7 @@ private:
String m_score_text;
unsigned m_high_score { 0 };
String m_high_score_text;
bool m_is_new_high_score { false };
NonnullRefPtrVector<Gfx::Bitmap> m_fruit_bitmaps;
};