This commit is contained in:
Willy-JL
2023-06-09 16:16:33 +01:00
20 changed files with 85 additions and 13 deletions

View File

@@ -275,6 +275,7 @@ void tick(GameState* game_state, NotificationApp* notification) {
if(game_state->state == GameStatePlay) {
if(game_state->top_cards[0].character == 11 && game_state->top_cards[1].character == 11 &&
game_state->top_cards[2].character == 11 && game_state->top_cards[3].character == 11) {
// dolphin_deed(DolphinDeedPluginGameWin);
game_state->state = GameStateAnimate;
return;
}
@@ -489,6 +490,9 @@ int32_t solitaire_app(void* p) {
AppEvent event;
// Call Dolphin deed on game start
// dolphin_deed(DolphinDeedPluginGameStart);
for(bool processing = true; processing;) {
FuriStatus event_status = furi_message_queue_get(event_queue, &event, 150);
furi_mutex_acquire(game_state->mutex, FuriWaitForever);