aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-10-01 23:00:21 +1000
committerquou <quou@disroot.org>2024-10-01 23:00:21 +1000
commita5beb2e333f225d4d92f4061c41938f718f69cb1 (patch)
tree4f071eb75edc789abb00c3fe27731a4c1c52024f
parent3aafea3504ffdd929308ce17808768d2aedb80a9 (diff)
freeze frames when hitting an enemy as well
-rw-r--r--config.h1
-rw-r--r--enemy.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/config.h b/config.h
index 1d89c17..5ab7597 100644
--- a/config.h
+++ b/config.h
@@ -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
diff --git a/enemy.c b/enemy.c
index 1e46cb1..1e5a4d2 100644
--- a/enemy.c
+++ b/enemy.c
@@ -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;
}
}
}