Skip to content

Commit

Permalink
Merge pull request #38 from TQMatvey/patch-3
Browse files Browse the repository at this point in the history
Snake & Tetris: Fix Score Counter position
  • Loading branch information
xMasterX authored Aug 1, 2022
2 parents afaa8ff + 7be3112 commit 07590da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion applications/snake_game/snake_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion applications/tetris_game/tetris_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 07590da

Please sign in to comment.