WIP: settings, color picker and stuff

This commit is contained in:
2024-01-05 22:19:31 +02:00
parent b8d11050f8
commit bba2f8a189
10 changed files with 561 additions and 68 deletions
+10 -1
View File
@@ -18,6 +18,12 @@ typedef enum IconTexture {
ICON_TEXTURE_COUNT,
} IconTexture;
typedef struct ColorPalette {
Color bg_color;
Color board_bg_color;
Color tile_colors[11];
} ColorPalette;
typedef struct Tile {
u16 value;
u16 new_value;
@@ -41,9 +47,12 @@ typedef struct Game {
Vec2 spawning_tile_coords;
u16 spawning_tile_value;
TextureId icon_textures[ICON_TEXTURE_COUNT];
bool quit_dialog;
bool help_dialog;
bool settings_dialog;
TextureId icon_textures[ICON_TEXTURE_COUNT];
ColorPalette palette;
} Game;
void draw_board(void);