diff options
author | 2025-05-21 16:34:55 +0200 | |
---|---|---|
committer | 2025-05-21 16:34:55 +0200 | |
commit | 25c0bda9ca1e436370a9e2a671d3195de0e90902 (patch) | |
tree | 821dd0b7a767f0448b0037fc59a07f4a0aea3809 /src/main/game/game.h | |
parent | bf93cf0e5209815e51a2932288029d26f2153aca (diff) | |
download | tris-25c0bda9ca1e436370a9e2a671d3195de0e90902.tar.gz tris-25c0bda9ca1e436370a9e2a671d3195de0e90902.zip |
Add a Cell list inside the TrisGame struct
Diffstat (limited to 'src/main/game/game.h')
-rw-r--r-- | src/main/game/game.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/game/game.h b/src/main/game/game.h index 298cafb..0cb80e0 100644 --- a/src/main/game/game.h +++ b/src/main/game/game.h @@ -20,12 +20,18 @@ #ifndef __GAME_H__ #define __GAME_H__ +#include "../util/list.h" + +typedef struct Cell { + float left, right, top, bottom; +} Cell; + typedef struct TrisGame { int width, height; + list_t *cells; } TrisGame; TrisGame *game_init(int width, int height); void game_start(void); -void game_draw_field(float box_size, float x, float y); #endif /* __GAME_H__ */ |