not use global vars anymore & other fixes

in tictactoe game / snake / arkanoid
This commit is contained in:
MX
2022-08-07 10:52:03 +03:00
parent 044338b8f2
commit baf0214ed1
4 changed files with 173 additions and 139 deletions

View File

@@ -283,7 +283,7 @@ static void snake_game_process_game_step(SnakeState* const snake_state, Notifica
bool eatFruit = (next_step.x == snake_state->fruit.x) && (next_step.y == snake_state->fruit.y);
if(eatFruit) {
notification_message(notify, &sequence_short_vibro_and_sound);
notification_message(notify, &sequence_blink_white_100);
//notification_message(notify, &sequence_blink_white_100);
snake_state->len++;
if(snake_state->len >= MAX_SNAKE_LEN) {