diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-04-30 19:18:50 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-04-30 19:18:50 +0200 |
| commit | 3767d1ce3e2b90d4eb667985c0997cb5293cc27e (patch) | |
| tree | a3a9671aefd322794518c55105ea0085e1d73d09 /include/objects.h | |
| parent | 784b123af41337c57535b80c15fe13b62dfc1e66 (diff) | |
work
Diffstat (limited to 'include/objects.h')
| -rw-r--r-- | include/objects.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/objects.h b/include/objects.h index d586838..5842985 100644 --- a/include/objects.h +++ b/include/objects.h @@ -11,12 +11,17 @@ typedef struct t_vec3f { float x,y,z; } vec3f; +typedef enum t_object_type { + OBJECT_COBBLESTONEWALL1 = 1, + OBJECT_PLANTBOX1 = 2, +} object_type; + typedef struct t_object { bool active; vec2f position; vec3f size; float h; - image* image; + object_type type; } object; typedef struct t_box { @@ -31,8 +36,6 @@ typedef struct t_box { vec2f br_u; } box; -object objects[MAX_OBJECTS]; - object get_object_at_tile(float x, float y); void create_objects(); void draw_objects_at_row(platform_window* window, int row); |
