Всё фигня, давай по новой
This commit is contained in:
parent
485ac0ca40
commit
f8e1e664a7
13 changed files with 199 additions and 479 deletions
12
src/brick_game/tetris/02_automato.c
Normal file
12
src/brick_game/tetris/02_automato.c
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#include "01_automato.h"
|
||||
|
||||
static GameState_t g_state = {0};
|
||||
|
||||
GameState_t* get_game_state(void) {
|
||||
static int initialized = 0;
|
||||
if (!initialized) {
|
||||
g_state.state = GameOver;
|
||||
initialized = 1;
|
||||
}
|
||||
return &g_state;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue