arch
This commit is contained in:
parent
f8e1e664a7
commit
5fd528e22a
11 changed files with 78 additions and 67 deletions
|
|
@ -3,17 +3,16 @@
|
|||
void do_attaching(void) {
|
||||
GameState_t* state = get_game_state();
|
||||
// Закрепляем фигуру на поле
|
||||
place_figure_on_field();
|
||||
place_figure();
|
||||
|
||||
// Удаляем линии
|
||||
clear_lines();
|
||||
|
||||
// Проверяем GameOver
|
||||
int is_gameov = 0;
|
||||
if (is_game_over()) {
|
||||
state->state = GameOver;
|
||||
return;
|
||||
} else {
|
||||
state->state = Spawn;
|
||||
}
|
||||
|
||||
// Переход в Spawn
|
||||
state->state = Spawn;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue