mirror of
https://github.com/IllusionMan1212/C2048.git
synced 2026-10-24 02:12:31 +00:00
zephr/game: textures, icons, and buttons
- zephr: correctly set cursor when hovering button - zephr: added texture loading and displaying - zephr: added icon button - game: added help and settings icon buttons
This commit is contained in:
@@ -10,6 +10,13 @@ typedef enum MoveDir {
|
||||
MOVE_DIR_RIGHT,
|
||||
} MoveDir;
|
||||
|
||||
typedef enum IconTexture {
|
||||
HELP_ICON,
|
||||
SETTINGS_ICON,
|
||||
|
||||
ICON_TEXTURE_COUNT,
|
||||
} IconTexture;
|
||||
|
||||
typedef struct Tile {
|
||||
u16 value;
|
||||
u16 new_value;
|
||||
@@ -27,6 +34,8 @@ typedef struct Game {
|
||||
bool spawning_new_tile;
|
||||
bool game_over;
|
||||
u32 score;
|
||||
|
||||
TextureId icon_textures[ICON_TEXTURE_COUNT];
|
||||
} Game;
|
||||
|
||||
void draw_board(void);
|
||||
|
||||
Reference in New Issue
Block a user