diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-11 16:14:54 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-11 16:14:54 +0100 |
| commit | 24af775b5041cbed67dfc84f3a0d67850a4b6a1b (patch) | |
| tree | 8858ba5158aa7a4b78e12ecbd17b509afda3f9d7 /main.c | |
| parent | 4933a7c038087ae465e588fafb392a57d7f92b87 (diff) | |
pathfinding
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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(); |
