tile merging and fixed game logic

This commit is contained in:
2023-12-15 08:41:07 +02:00
parent 9620e12681
commit 788109eccd
2 changed files with 242 additions and 143 deletions
+4
View File
@@ -13,6 +13,7 @@ typedef enum MoveDir {
typedef struct Tile {
u16 value;
u16 new_value;
bool merged;
f64 anim_x_offset_relative;
f64 anim_y_offset_relative;
@@ -23,6 +24,9 @@ typedef struct Game {
Tile board[4][4];
MoveDir last_move_dir;
bool animating;
bool spawning_new_tile;
bool game_over;
u32 score;
} Game;
void draw_board(void);