aboutsummaryrefslogtreecommitdiff
path: root/collision_system.c
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-07 09:46:39 +1000
committerquou <quou@disroot.org>2023-05-07 09:46:39 +1000
commit5ef6a71e935e2c3d1e5f9828e8cdbd78403a06a0 (patch)
tree128326b3234ec3b168f85b7a6749ff0fa4635a09 /collision_system.c
parent40eb179043b77f011fb1048c386ee187f64569d0 (diff)
Add some frames where the skulls are red after being damaged.
Diffstat (limited to 'collision_system.c')
-rw-r--r--collision_system.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/collision_system.c b/collision_system.c
index ed05817..2bb8cdb 100644
--- a/collision_system.c
+++ b/collision_system.c
@@ -6,6 +6,7 @@
#include "components.h"
#include "config.h"
#include "fx.h"
+#include "game_config.h"
#include "rect.h"
#include "standard.h"
#include "world.h"
@@ -62,6 +63,7 @@ static void handle_bullet_vs_enemy(
pos = &world->positions[bullet];
e = &world->enemies[enemy];
+ e->being_damaged = enemy_hit_frames;
e->hp--;
destroy_entity(world, bullet);
new_player_bullet_explosion(world, pos->x, pos->y);