summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/throwables.h3
-rw-r--r--include/zombies.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/include/throwables.h b/include/throwables.h
index 2106c94..0d227d9 100644
--- a/include/throwables.h
+++ b/include/throwables.h
@@ -30,8 +30,11 @@ typedef struct t_throwable {
float alive_time;
int bounces;
sprite sprite;
+ int damage;
} throwable;
+vec3f grenade_explosion_size = (vec3f){2.0f, 2.0f, 2.0f};
+
throwable throwables[500] = {0};
int max_throwables = 500;
diff --git a/include/zombies.h b/include/zombies.h
index eeadaaf..b2aeb2a 100644
--- a/include/zombies.h
+++ b/include/zombies.h
@@ -39,6 +39,7 @@ spawner spawner_tiles[MAX_SPAWNERS] = {0};
#define SERVER_MAX_ZOMBIES (50)
zombie zombies[SERVER_MAX_ZOMBIES] = {0};
+bool hit_zombie(int index, int damage);
void create_spawner(vec2 position);
void draw_spawners(platform_window* window);
void draw_zombies(platform_window* window);