now it draws all seven
This commit is contained in:
parent
851d303aab
commit
b0ab522b58
2 changed files with 3 additions and 4 deletions
|
|
@ -8,7 +8,7 @@ static GameStateData game_state = {0};
|
|||
static bool initialized = false;
|
||||
|
||||
const int (*get_figure_shape(FigureType type, int rotation))[4] {
|
||||
static const int shapes[FIGURE_COUNT][4][4][4] = {
|
||||
static const int shapes[FIGURE_COUNT + 1][4][4][4] = {
|
||||
// I
|
||||
{
|
||||
{
|
||||
|
|
@ -222,6 +222,6 @@ void user_input(UserAction_t action) {
|
|||
}
|
||||
}
|
||||
|
||||
GameStateData* getGameState() {
|
||||
GameStateData* get_game_state() {
|
||||
return &game_state;
|
||||
}
|
||||
|
|
@ -17,9 +17,8 @@ int main() {
|
|||
timeout(100); // Таймаут для getch()
|
||||
|
||||
int ch;
|
||||
bool hold = false;
|
||||
UserAction_t action = Undefined;
|
||||
while (!Terminate) {
|
||||
while (action != Terminate) {
|
||||
ch = getch();
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue