now it draws all seven

This commit is contained in:
Rorikstr | Rust Dev 2025-09-26 14:23:10 +03:00
parent 851d303aab
commit b0ab522b58
2 changed files with 3 additions and 4 deletions

View file

@ -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;
}

View file

@ -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();