Snake & Tetris: Fix Score Counter position

This commit is contained in:
TQMatvey 2022-08-01 09:23:20 +07:00
parent f80da7e06c
commit 1bb778e717
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ static void snake_game_render_callback(Canvas* const canvas, void* ctx) {
if(snake_state->state != GameStateGameOver) {
char buffer2[6];
snprintf(buffer2, sizeof(buffer2), "%u", snake_state->len - 7);
canvas_draw_str_aligned(canvas, 126, 8, AlignRight, AlignBottom, buffer2);
canvas_draw_str_aligned(canvas, 124, 10, AlignRight, AlignBottom, buffer2);
}
// Game Over banner
if(snake_state->state == GameStateGameOver) {

View File

@ -136,7 +136,7 @@ static void tetris_game_render_callback(Canvas* const canvas, void* ctx) {
if(tetris_state->gameState == GameStatePlaying) {
char buffer2[6];
snprintf(buffer2, sizeof(buffer2), "%u", tetris_state->numLines);
canvas_draw_str_aligned(canvas, 61, 8, AlignRight, AlignBottom, buffer2);
canvas_draw_str_aligned(canvas, 58,10, AlignRight, AlignBottom, buffer2);
}
if(tetris_state->gameState == GameStateGameOver) {