diff options
author | quou <quou@disroot.org> | 2023-05-07 09:46:39 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-07 09:46:39 +1000 |
commit | 5ef6a71e935e2c3d1e5f9828e8cdbd78403a06a0 (patch) | |
tree | 128326b3234ec3b168f85b7a6749ff0fa4635a09 /collision_system.c | |
parent | 40eb179043b77f011fb1048c386ee187f64569d0 (diff) |
Add some frames where the skulls are red after being damaged.
Diffstat (limited to 'collision_system.c')
-rw-r--r-- | collision_system.c | 2 |
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); |