mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:47:45 +00:00
FlappyBug: Persist high score to disk
Previously, the high score was only in-memory, so only persisted for as long as the FlappyBug window was open.
This commit is contained in:
parent
25c53e35e7
commit
1a2053781f
3 changed files with 30 additions and 5 deletions
|
@ -25,6 +25,8 @@ public:
|
|||
static const int game_width = 560;
|
||||
static const int game_height = 480;
|
||||
|
||||
Function<u32(u32)> on_game_end;
|
||||
|
||||
private:
|
||||
Game();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue