diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-10-29 09:40:38 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2023-10-29 09:40:38 +0100 |
| commit | dda7cfb99e9e8664878bcd38e3d3392b544c3343 (patch) | |
| tree | 9e824e014510ca436a1697546e0fce3412970594 /include | |
| parent | 2bcffc7def20dd1e660d742f54bd97307b9f193d (diff) | |
grenade explosion
Diffstat (limited to 'include')
| -rw-r--r-- | include/throwables.h | 3 | ||||
| -rw-r--r-- | include/zombies.h | 1 |
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); |
