From 5ef6a71e935e2c3d1e5f9828e8cdbd78403a06a0 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 7 May 2023 09:46:39 +1000 Subject: Add some frames where the skulls are red after being damaged. --- collision_system.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'collision_system.c') 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); -- cgit v1.2.3-54-g00ecf