This commit is contained in:
Jakub Frankovič 2026-05-13 19:10:18 +02:00
parent 5ad8643416
commit e0ed8982a0
3 changed files with 3 additions and 3 deletions

View File

@ -85,9 +85,9 @@ static const int PIECE_SHAPES[NUM_PIECES][4][4][2] = {
}, },
/* L piece */ /* L piece */
{ {
{{-1, 0}, {0, 0}, {1, 0}, {-1, 1}}, {{-1, 0}, {0, 0}, {1, 0}, {1, -1}},
{{0, -1}, {0, 0}, {0, 1}, {1, 1}}, {{0, -1}, {0, 0}, {0, 1}, {1, 1}},
{{-1, -1}, {-1, 0}, {0, 0}, {1, 0}}, {{-1, 0}, {0, 0}, {1, 0}, {-1, 1}},
{{0, -1}, {0, 0}, {0, 1}, {-1, -1}} {{0, -1}, {0, 0}, {0, 1}, {-1, -1}}
} }
}; };
@ -177,7 +177,7 @@ void spawn_piece(GameState* state) {
state->piece_type = state->next_piece_type; state->piece_type = state->next_piece_type;
state->next_piece_type = rand() % NUM_PIECES; state->next_piece_type = rand() % NUM_PIECES;
state->piece_x = BOARD_WIDTH / 2; state->piece_x = BOARD_WIDTH / 2;
state->piece_y = 0; state->piece_y = 1;
state->piece_rotation = 0; state->piece_rotation = 0;
/* Check if game is over (piece can't spawn) */ /* Check if game is over (piece can't spawn) */

Binary file not shown.

Binary file not shown.