Brick Game v1.0
Implementation of the game Tetris in the C programming language with a terminal user interface.
|
Public Member Functions | |
void | user_input (GameInstance *instance, UserAction action) |
Register a user input. | |
GameInfo | update_current_state (GameInstance *instance) |
Advance the game state by one frame. | |
Data Fields | |
GameData | game_data |
PieceData | next_piece_data |
PlayField | combined_field |
int * | field_matrix [PLAYFIELD_ROWS] |
int * | next_matrix [PIECE_ROWS] |
void user_input | ( | GameInstance * | instance, |
UserAction | action | ||
) |
Register a user input.
action | — User input to register |
GameInfo update_current_state | ( | GameInstance * | instance | ) |
Advance the game state by one frame.