summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-11 16:14:54 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-11 16:14:54 +0100
commit24af775b5041cbed67dfc84f3a0d67850a4b6a1b (patch)
tree8858ba5158aa7a4b78e12ecbd17b509afda3f9d7 /main.c
parent4933a7c038087ae465e588fafb392a57d7f92b87 (diff)
pathfinding
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.c b/main.c
index ea17371..ccdfc91 100644
--- a/main.c
+++ b/main.c
@@ -6,6 +6,8 @@
#include "include/zombies.h"
#include "include/math_helper.h"
#include "include/bullets.h"
+#include "include/pathfinding.h"
+#include "include/list.h"
#include "map.c"
#include "players.c"
@@ -13,6 +15,8 @@
#include "zombies.c"
#include "bullets.c"
#include "math_helper.c"
+#include "pathfinding.c"
+#include "list.c"
#define CONFIG_DIRECTORY "zombieshooter"
@@ -43,12 +47,18 @@ int main(int argc, char **argv)
load_map_from_data();
create_objects();
+ pathfinding_init();
+
+ thread t = thread_start(pathfinding_thread, 0);
+ thread_detach(&t);
+
while(platform_keep_running(window)) {
platform_handle_events();
}
settings_write_to_file();
platform_destroy();
+ pathfinding_destroy();
memory_print_leaks();