summaryrefslogtreecommitdiff
path: root/include/objects.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/objects.h')
-rw-r--r--include/objects.h9
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);