mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 22:37:36 +00:00
Snake: Add pause/continue game menu action
This patch adds an action in the Snake's game menu that allows for easy pausing/unpausing of the game state. In order to do this, the commit adds new pause()/start() functions in the SnakeGame class ;)
This commit is contained in:
parent
3de5dcf383
commit
b354e858c8
3 changed files with 30 additions and 2 deletions
|
@ -18,6 +18,8 @@ public:
|
|||
static ErrorOr<NonnullRefPtr<SnakeGame>> create();
|
||||
virtual ~SnakeGame() override = default;
|
||||
|
||||
void start();
|
||||
void pause();
|
||||
void reset();
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue