|
SNAKE_STM32F3
|
High-level game state machine module controlling application flow. More...

Go to the source code of this file.
Functions | |
| void | game_loop (void) |
| Main game state machine function. | |
| void | game_init (void) |
| Main game init function. | |
| void | game_start_request (int game_seed) |
| Requests start of the game in state machine. | |
| void | game_tick_request (void) |
| Requests one tick game progression (one snake move) in state machine. | |
High-level game state machine module controlling application flow.
SPDX-License-Identifier: MIT
| void game_init | ( | void | ) |
Main game init function.

| void game_loop | ( | void | ) |
Main game state machine function.
Handles two application states (MENU, GAME).

| void game_start_request | ( | int | game_seed | ) |
Requests start of the game in state machine.
| game_seed | Seed used for random fruit position generator. |
| void game_tick_request | ( | void | ) |
Requests one tick game progression (one snake move) in state machine.