Revert "fetch big commit from upstream"

This reverts commit 6634999113.
This commit is contained in:
r3df0xx
2022-05-27 22:18:35 +03:00
parent 310e140024
commit b23b3c9e8d
68 changed files with 475 additions and 655 deletions

View File

@@ -2,6 +2,8 @@
#include <gui/gui.h>
#include <input/input.h>
#include <stdlib.h>
#include <notification/notification.h>
#include <notification/notification_messages.h>
typedef struct {
// +-----x
@@ -298,6 +300,11 @@ static void snake_game_process_game_step(SnakeState* const snake_state) {
bool eatFruit = (next_step.x == snake_state->fruit.x) && (next_step.y == snake_state->fruit.y);
if(eatFruit) {
NotificationApp* notification = furi_record_open("notification");
notification_message(notification, &sequence_single_vibro);
notification_message(notification, &sequence_blink_white_100);
furi_record_close("notification");
snake_state->len++;
if(snake_state->len >= MAX_SNAKE_LEN) {
snake_state->state = GameStateGameOver;