1
Fork 0
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:
Baitinq 2022-12-18 21:28:11 +01:00 committed by Tim Flynn
parent 56a75ec94e
commit 89c6d41e9c
2 changed files with 10 additions and 0 deletions

View file

@ -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);