set next block when placing a new block

This commit is contained in:
2025-01-29 15:51:37 +01:00
parent 3c2902baa6
commit 90031cf3da
3 changed files with 12 additions and 1 deletions

View File

@@ -22,7 +22,9 @@ typedef struct {
Colour* row[ROWS]; // stores how to interpert the raw level data
Colour row_raw[ROWS][COLUMNS]; // stores the raw level data
SelectedShape selected;
ShapeId next_shape;
} GameData;
void set_next_shape(GameData* game_data);
void game_init(GameData* game_data); // initializes the game
void game_update(GameData* game_data, const uint8_t* keys); // updates the game's state