mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-01-01 17:55:44 +03:00
Snake & Tetris: Fix Score Counter position
This commit is contained in:
parent
f80da7e06c
commit
1bb778e717
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user