summaryrefslogtreecommitdiff
path: root/src/objects.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-16 23:21:47 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-16 23:21:47 +0100
commit89984db7afa433e2842c4ef8c8c265a3e3993636 (patch)
tree127a939c0d02ba66600c353319be94cdf3906fc0 /src/objects.c
parent24a44e57ab9adbb353adac8b83c4441e7adb3751 (diff)
work
Diffstat (limited to 'src/objects.c')
-rw-r--r--src/objects.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/objects.c b/src/objects.c
index 23a57c6..a4d86e1 100644
--- a/src/objects.c
+++ b/src/objects.c
@@ -1,4 +1,5 @@
#include "../include/objects.h"
+#include "../include/wall_item.h"
box get_box_of_object(platform_window* window, object o) {
return get_render_box_of_square(window, (vec3f){o.position.x, o.position.y, o.h}, o.size);
@@ -79,4 +80,6 @@ void create_objects() {
create_box(14, 10, 0);
create_box(13, 10, 0);
create_box(11, 10, 0);
+
+ create_wallitem((vec3f){14, 1, 0}, WALLITEM_GUN, (wall_item_data){.gun = GUN_NOVA});
} \ No newline at end of file