1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:17:34 +00:00

Snake: Add some more fruit types.

This commit is contained in:
Andreas Kling 2019-04-20 18:50:41 +02:00
parent 4619019481
commit c9b86be1cc
6 changed files with 23 additions and 6 deletions

View file

@ -50,10 +50,11 @@ private:
Vector<Coordinate> m_tail;
Coordinate m_fruit;
int m_fruit_type { 0 };
int m_length { 0 };
unsigned m_score { 0 };
String m_score_text;
RetainPtr<GraphicsBitmap> m_fruit_bitmap;
Vector<Retained<GraphicsBitmap>> m_fruit_bitmaps;
};