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:
parent
67300af248
commit
cb9b004ff8
2 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue