mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +00:00
Snake: Show the highest score achieved so far (in this session.)
This commit is contained in:
parent
0dcb7a234e
commit
a56e1afb64
2 changed files with 20 additions and 1 deletions
|
@ -37,6 +37,7 @@ private:
|
|||
const Velocity& last_velocity() const;
|
||||
Rect cell_rect(const Coordinate&) const;
|
||||
Rect score_rect() const;
|
||||
Rect high_score_rect() const;
|
||||
|
||||
int m_rows { 20 };
|
||||
int m_columns { 20 };
|
||||
|
@ -55,6 +56,8 @@ private:
|
|||
int m_length { 0 };
|
||||
unsigned m_score { 0 };
|
||||
String m_score_text;
|
||||
unsigned m_high_score { 0 };
|
||||
String m_high_score_text;
|
||||
|
||||
Vector<Retained<GraphicsBitmap>> m_fruit_bitmaps;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue