Add hi-score graphics

This commit is contained in:
hkz 2025-07-25 19:51:08 +02:00
commit 10dc668d9e
8 changed files with 41 additions and 8 deletions

View file

@ -22,6 +22,9 @@
#define SCORE_TEXT_Y 29
#define SCORE_TEXT_WIDTH 5
#define HIGH_TEXT_X 32
#define HIGH_TEXT_Y 107
#define WIN_SCORE_BONUS 10000
void init(void);
@ -64,7 +67,7 @@ __task int main(void) {
score = reset_game();
// Draw the initial state of the game
draw_game_background();
draw_game_background(hi_score);
draw_number(moves_count, MOVES_TEXT_WIDTH, MOVES_TEXT_X, MOVES_TEXT_Y);
draw_number(score, SCORE_TEXT_WIDTH, SCORE_TEXT_X, SCORE_TEXT_Y);
draw_tiles();