diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-05-01 14:41:31 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-05-01 14:41:31 +0200 |
| commit | 7338fe068fb4081938ca6530cd761a607a9c8ce9 (patch) | |
| tree | d276bf71821a4446713d71445e9a6c32152913a6 /include | |
| parent | b694a83655d97bb93318c4523a40c1915f3c05ee (diff) | |
icons
Diffstat (limited to 'include')
| -rw-r--r-- | include/asset_defs.h | 13 | ||||
| -rw-r--r-- | include/map.h | 4 |
2 files changed, 15 insertions, 2 deletions
diff --git a/include/asset_defs.h b/include/asset_defs.h index 10919b4..154f542 100644 --- a/include/asset_defs.h +++ b/include/asset_defs.h @@ -6,21 +6,30 @@ font* fnt_24; font* fnt_20; +// Icons image* img_icon_bullets; image* img_icon_nova; - image* img_drop; -image* img_spawner; +image* img_arrow_up; +image* img_arrow_down; +image* img_cancel; +// Objects +image* img_spawner; image* img_obj_plants; image* img_obj_wall1; + +// Players image* img_player; +// Other image* img_zombie_chunk_hand; image* img_zombie_chunk_foot; image* img_zombie_chunk_blood; +// Tiles image* img_tile_cobblestone; +image* img_tile_grass1; void load_assets(); diff --git a/include/map.h b/include/map.h index 6a509e2..738d1c2 100644 --- a/include/map.h +++ b/include/map.h @@ -9,6 +9,9 @@ typedef enum t_tile_type { TILE_NONE = 0, TILE_COBBLESTONE1 = 1, + TILE_GRASS1 = 2, + + TILE_END, } tile_type; typedef struct t_tile { @@ -65,5 +68,6 @@ int get_tile_width(platform_window* window); bool is_in_bounds(float x, float y); void draw_grid(platform_window* window); map_info get_map_info(platform_window* window); +image* get_image_from_tiletype(tile_type tile); #endif
\ No newline at end of file |
