summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/zombies.exebin1697824 -> 1697824 bytes
-rw-r--r--main.c18
-rw-r--r--project-base.code-workspace3
-rw-r--r--src/allocator.c (renamed from allocator.c)2
-rw-r--r--src/bullets.c (renamed from bullets.c)2
-rw-r--r--src/list.c (renamed from list.c)2
-rw-r--r--src/map.c (renamed from map.c)2
-rw-r--r--src/math_helper.c (renamed from math_helper.c)2
-rw-r--r--src/objects.c (renamed from objects.c)2
-rw-r--r--src/pathfinding.c (renamed from pathfinding.c)2
-rw-r--r--src/players.c (renamed from players.c)2
-rw-r--r--src/zombies.c (renamed from zombies.c)2
12 files changed, 20 insertions, 19 deletions
diff --git a/build/zombies.exe b/build/zombies.exe
index dc8678b..612a3fb 100644
--- a/build/zombies.exe
+++ b/build/zombies.exe
Binary files differ
diff --git a/main.c b/main.c
index 265ab7e..045c512 100644
--- a/main.c
+++ b/main.c
@@ -10,15 +10,15 @@
#include "include/list.h"
#include "include/allocator.h"
-#include "map.c"
-#include "players.c"
-#include "objects.c"
-#include "zombies.c"
-#include "bullets.c"
-#include "math_helper.c"
-#include "pathfinding.c"
-#include "list.c"
-#include "allocator.c"
+#include "src/map.c"
+#include "src/players.c"
+#include "src/objects.c"
+#include "src/zombies.c"
+#include "src/bullets.c"
+#include "src/math_helper.c"
+#include "src/pathfinding.c"
+#include "src/list.c"
+#include "src/allocator.c"
#define CONFIG_DIRECTORY "zombieshooter"
diff --git a/project-base.code-workspace b/project-base.code-workspace
index be07839..ad85ea4 100644
--- a/project-base.code-workspace
+++ b/project-base.code-workspace
@@ -57,7 +57,8 @@
"xiosbase": "c",
"pathfinding.h": "c",
"unordered_map": "c",
- "players.h": "c"
+ "players.h": "c",
+ "allocator.h": "c"
}
}
} \ No newline at end of file
diff --git a/allocator.c b/src/allocator.c
index aaa2197..ffb6763 100644
--- a/allocator.c
+++ b/src/allocator.c
@@ -1,4 +1,4 @@
-#include "include/allocator.h"
+#include "../include/allocator.h"
allocator create_allocator(uint64_t size) {
allocator allocator;
diff --git a/bullets.c b/src/bullets.c
index 1c8f8b0..c2f6d3b 100644
--- a/bullets.c
+++ b/src/bullets.c
@@ -1,4 +1,4 @@
-#include "include/bullets.h"
+#include "../include/bullets.h"
void shoot(platform_window* window, player p) {
map_info info = get_map_info(window);
diff --git a/list.c b/src/list.c
index f186285..ae394ec 100644
--- a/list.c
+++ b/src/list.c
@@ -1,4 +1,4 @@
-#include "include/list.h"
+#include "../include/list.h"
list list_create(u16 size, allocator* al)
{
diff --git a/map.c b/src/map.c
index 15a7c70..e466f5f 100644
--- a/map.c
+++ b/src/map.c
@@ -1,4 +1,4 @@
-#include "include/map.h"
+#include "../include/map.h"
static int get_height_of_tile_tl(int current_height, int x, int y) {
int highest_point = current_height;
diff --git a/math_helper.c b/src/math_helper.c
index 648fbd2..3bbfb29 100644
--- a/math_helper.c
+++ b/src/math_helper.c
@@ -1,4 +1,4 @@
-#include "include/math_helper.h"
+#include "../include/math_helper.h"
bool onSegment(vec2f p, vec2f q, vec2f r)
diff --git a/objects.c b/src/objects.c
index a787d7b..efa128b 100644
--- a/objects.c
+++ b/src/objects.c
@@ -1,4 +1,4 @@
-#include "include/objects.h"
+#include "../include/objects.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);
diff --git a/pathfinding.c b/src/pathfinding.c
index bb209b0..16e5261 100644
--- a/pathfinding.c
+++ b/src/pathfinding.c
@@ -1,4 +1,4 @@
-#include "include/pathfinding.h"
+#include "../include/pathfinding.h"
static float distance_between(vec2f v1, vec2f v2)
{
diff --git a/players.c b/src/players.c
index f6719b5..132a467 100644
--- a/players.c
+++ b/src/players.c
@@ -1,4 +1,4 @@
-#include "include/players.h"
+#include "../include/players.h"
float get_bullet_size_in_tile(platform_window* window) {
return 1 / 8.0f;
diff --git a/zombies.c b/src/zombies.c
index 76a6e1b..4bbcf40 100644
--- a/zombies.c
+++ b/src/zombies.c
@@ -1,4 +1,4 @@
-#include "include/zombies.h"
+#include "../include/zombies.h"
static player get_closest_player_to_tile(int x, int y) {
float best_length = 99999;