mirror of
https://codeberg.org/hkzlab/TK2048.git
synced 2025-12-26 00:32:16 +11:00
Add hi-score graphics
This commit is contained in:
parent
0173ab753a
commit
10dc668d9e
8 changed files with 41 additions and 8 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue