mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:17:45 +00:00
Snake: Add snake color chooser game menu action
This patch makes use of a new "set_snake_base_color()" function to change the snake's base color to the picked value.
This commit is contained in:
parent
56a75ec94e
commit
89c6d41e9c
2 changed files with 10 additions and 0 deletions
|
@ -22,6 +22,8 @@ public:
|
|||
void pause();
|
||||
void reset();
|
||||
|
||||
void set_snake_base_color(Color color) { m_snake_base_color = color; };
|
||||
|
||||
private:
|
||||
explicit SnakeGame(NonnullRefPtrVector<Gfx::Bitmap> food_bitmaps);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue