mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-23 05:24:46 -07:00
two new games & music player patch
This commit is contained in:
@@ -150,6 +150,11 @@ static void tetris_game_render_callback(Canvas* const canvas, void* ctx) {
|
||||
tetris_game_draw_border(canvas);
|
||||
tetris_game_draw_playfield(canvas, tetris_state);
|
||||
|
||||
// Show score on the game field
|
||||
char buffer2[6];
|
||||
snprintf(buffer2, sizeof(buffer2), "%u", tetris_state->numLines);
|
||||
canvas_draw_str_aligned(canvas, 61, 8, AlignRight, AlignBottom, buffer2);
|
||||
|
||||
if(tetris_state->gameState == GameStateGameOver) {
|
||||
// 128 x 64
|
||||
canvas_set_color(canvas, ColorWhite);
|
||||
@@ -476,4 +481,4 @@ int32_t tetris_game_app() {
|
||||
free(tetris_state);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user