From 6f6f58c437660ac27e11387833b0037b465f7ea9 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Thu, 21 Nov 2024 20:42:35 +0100 Subject: working on new machine --- include/allocator.h | 2 +- include/asset_defs.h | 2 +- include/audio.h | 2 +- include/bullets.h | 2 +- include/drops.h | 2 +- include/fog_of_war.h | 8 ++++++++ include/game.h | 2 +- include/keybindings.h | 2 +- include/list.h | 2 +- include/map.h | 2 +- include/math_helper.h | 2 +- include/menu.h | 2 +- include/objects.h | 2 +- include/overlay.h | 2 +- include/pathfinding.h | 2 +- include/players.h | 2 +- include/protocol.h | 2 +- include/rounds.h | 2 +- include/sprite.h | 2 +- include/throwables.h | 2 +- include/wall_item.h | 2 +- include/zombie_chunk.h | 2 +- include/zombies.h | 2 +- 23 files changed, 30 insertions(+), 22 deletions(-) create mode 100644 include/fog_of_war.h (limited to 'include') diff --git a/include/allocator.h b/include/allocator.h index a1c8bf0..7ee33b2 100644 --- a/include/allocator.h +++ b/include/allocator.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_ALLOCATOR #define INCLUDE_ALLOCATOR -#include +#include "../project-base/src/project_base.h" typedef struct t_allocator { void* memory; diff --git a/include/asset_defs.h b/include/asset_defs.h index 8249177..ff534fc 100644 --- a/include/asset_defs.h +++ b/include/asset_defs.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_ASSET_DEFS #define INCLUDE_ASSET_DEFS -#include +#include "../project-base/src/project_base.h" /////// Loaded at game start. image* img_splash_art1; diff --git a/include/audio.h b/include/audio.h index db979df..63dcab0 100644 --- a/include/audio.h +++ b/include/audio.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_AUDIO_ #define INCLUDE_AUDIO_ -#include +#include "../project-base/src/project_base.h" #include "throwables.h" #define NUMBER_OF_AUDIO_CHANNELS 64 diff --git a/include/bullets.h b/include/bullets.h index 28ad175..253dc0a 100644 --- a/include/bullets.h +++ b/include/bullets.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_BULLETS #define INCLUDE_BULLETS -#include +#include "../project-base/src/project_base.h" #include "players.h" #include "objects.h" diff --git a/include/drops.h b/include/drops.h index 91ec03e..4e8158c 100644 --- a/include/drops.h +++ b/include/drops.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_DROPS #define INCLUDE_DROPS -#include +#include "../project-base/src/project_base.h" #include "guns.h" diff --git a/include/fog_of_war.h b/include/fog_of_war.h new file mode 100644 index 0000000..2e0efd2 --- /dev/null +++ b/include/fog_of_war.h @@ -0,0 +1,8 @@ +#ifndef INCLUDE_FOG_OF_WAR +#define INCLUDE_FOG_OF_WAR + +#include "../project-base/src/project_base.h" + +void draw_fog_of_war(platform_window* window); + +#endif diff --git a/include/game.h b/include/game.h index 91f471d..c70de8e 100644 --- a/include/game.h +++ b/include/game.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_GAME #define INCLUDE_GAME -#include +#include "../project-base/src/project_base.h" #include "../include/protocol.h" #include "../include/players.h" diff --git a/include/keybindings.h b/include/keybindings.h index fcdfda1..f41de4c 100644 --- a/include/keybindings.h +++ b/include/keybindings.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_KEYBINDINGS #define INCLUDE_KEYBINDINGS -#include +#include "../project-base/src/project_base.h" typedef struct t_keybinding { int key; diff --git a/include/list.h b/include/list.h index db174c7..724045a 100644 --- a/include/list.h +++ b/include/list.h @@ -2,7 +2,7 @@ #ifndef INCLUDE_LIST #define INCLUDE_LIST -#include +#include "../project-base/src/project_base.h" #include "allocator.h" diff --git a/include/map.h b/include/map.h index 13983c0..c67eac3 100644 --- a/include/map.h +++ b/include/map.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_MAP #define INCLUDE_MAP -#include +#include "../project-base/src/project_base.h" #include "players.h" #include "objects.h" diff --git a/include/math_helper.h b/include/math_helper.h index bfbc1cd..4bec681 100644 --- a/include/math_helper.h +++ b/include/math_helper.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_MATH_HELPER #define INCLUDE_MATH_HELPER -#include +#include "../project-base/src/project_base.h" #include "players.h" #include "objects.h" diff --git a/include/menu.h b/include/menu.h index 9a448cd..bdd6012 100644 --- a/include/menu.h +++ b/include/menu.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_MENU #define INCLUDE_MENU -#include +#include "../project-base/src/project_base.h" #define PROGRAM_VERSION "0.1 | "__DATE__ diff --git a/include/objects.h b/include/objects.h index a8baf3c..5be7225 100644 --- a/include/objects.h +++ b/include/objects.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_OBJECT #define INCLUDE_OBJECT -#include +#include "../project-base/src/project_base.h" #include "map.h" diff --git a/include/overlay.h b/include/overlay.h index acbe1e4..b438c1c 100644 --- a/include/overlay.h +++ b/include/overlay.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_OVERLAY #define INCLUDE_OVERLAY -#include +#include "../project-base/src/project_base.h" u64 logic_update_time = 0; diff --git a/include/pathfinding.h b/include/pathfinding.h index 4eace4c..33eb409 100644 --- a/include/pathfinding.h +++ b/include/pathfinding.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_PATHFINDING #define INCLUDE_PATHFINDING -#include +#include "../project-base/src/project_base.h" #include "allocator.h" #include "players.h" diff --git a/include/players.h b/include/players.h index 1343e14..c560678 100644 --- a/include/players.h +++ b/include/players.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_PLAYER #define INCLUDE_PLAYER -#include +#include "../project-base/src/project_base.h" #include "map.h" #include "objects.h" diff --git a/include/protocol.h b/include/protocol.h index 001e601..1a4b210 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_PROTOCOL #define INCLUDE_PROTOCOL -#include +#include "../project-base/src/project_base.h" #include "list.h" #include "players.h" diff --git a/include/rounds.h b/include/rounds.h index 4edbde2..dd2db94 100644 --- a/include/rounds.h +++ b/include/rounds.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_ROUNDS #define INCLUDE_ROUNDS -#include +#include "../project-base/src/project_base.h" #define ROUND_SWITCH_TIME 6.0f diff --git a/include/sprite.h b/include/sprite.h index 6c314d0..02045d0 100644 --- a/include/sprite.h +++ b/include/sprite.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_SPRITE #define INCLUDE_SPRITE -#include +#include "../project-base/src/project_base.h" typedef struct t_sprite { int current_frame; diff --git a/include/throwables.h b/include/throwables.h index c741a55..a24d7e2 100644 --- a/include/throwables.h +++ b/include/throwables.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_THROWABLES #define INCLUDE_THROWABLES -#include +#include "../project-base/src/project_base.h" #include "players.h" #include "objects.h" diff --git a/include/wall_item.h b/include/wall_item.h index 231788e..9bf0313 100644 --- a/include/wall_item.h +++ b/include/wall_item.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_WALL_ITEM #define INCLUDE_WALL_ITEM -#include +#include "../project-base/src/project_base.h" #include "objects.h" #include "guns.h" diff --git a/include/zombie_chunk.h b/include/zombie_chunk.h index 7beb14c..a5df279 100644 --- a/include/zombie_chunk.h +++ b/include/zombie_chunk.h @@ -1,7 +1,7 @@ #ifndef ZOMBIE_CHUNK #define ZOMBIE_CHUNK -#include +#include "../project-base/src/project_base.h" #include "objects.h" diff --git a/include/zombies.h b/include/zombies.h index a0cbc79..3dd01cc 100644 --- a/include/zombies.h +++ b/include/zombies.h @@ -1,7 +1,7 @@ #ifndef INCLUDE_ZOMBIES #define INCLUDE_ZOMBIES -#include +#include "../project-base/src/project_base.h" #include "players.h" #include "objects.h" -- cgit v1.2.3-70-g09d2