Skip to content

Commit

Permalink
icon
Browse files Browse the repository at this point in the history
  • Loading branch information
panki27 committed Sep 23, 2022
1 parent 45ff8cd commit f951a55
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions application.fam
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ App(
requires=["gui"],
stack_size=8 * 1024,
fap_category="Games",
fap_icon="minesweeper_icon.png",
order=35,
)
7 changes: 4 additions & 3 deletions minesweeper.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#define TILE_WIDTH 8
#define TILE_HEIGHT 8

#define MINECOUNT 24
#define MINECOUNT 20

typedef enum {
EventTypeTick,
Expand Down Expand Up @@ -239,6 +239,7 @@ static void setup_playfield(Minesweeper* minesweeper_state) {
minesweeper_state->fields_cleared = 0;
minesweeper_state->flags_set = 0;
minesweeper_state->game_started_tick = furi_get_tick();
minesweeper_state->game_started = false;
}
}

Expand All @@ -265,8 +266,8 @@ static bool game_lost(Minesweeper* minesweeper_state) {
dialog_message_set_header(message, header_text, 64, 3, AlignCenter, AlignTop);
dialog_message_set_text(message, message_text, 64, 32, AlignCenter, AlignCenter);
dialog_message_set_buttons(message, NULL, "Play again", NULL);
// TODO: create icon
dialog_message_set_icon(message, NULL, 72, 17);

dialog_message_set_icon(message, NULL, 0, 10);

notification_message(notifications, &sequence_set_vibro_on);
furi_delay_ms(200);
Expand Down
Binary file added minesweeper_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f951a55

Please sign in to comment.