diff options
author | quou <quou@disroot.org> | 2024-10-01 23:00:21 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-10-01 23:00:21 +1000 |
commit | a5beb2e333f225d4d92f4061c41938f718f69cb1 (patch) | |
tree | 4f071eb75edc789abb00c3fe27731a4c1c52024f | |
parent | 3aafea3504ffdd929308ce17808768d2aedb80a9 (diff) |
freeze frames when hitting an enemy as well
-rw-r--r-- | config.h | 1 | ||||
-rw-r--r-- | enemy.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -50,5 +50,6 @@ #define enemy_demon_jump_force (5 << fbits) #define enemy_slash_damage 1 #define enemy_knockback (4 << fbits) +#define enemy_hurt_freeze 1 #endif @@ -98,6 +98,7 @@ void update_enemy_hurt(Enemy* e, World* w) { e->vy -= dz->vy; e->inv = enemy_inv_frames; w->player.charge++; + w->freeze += enemy_hurt_freeze; } } } |