aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-10-01 19:00:10 +1000
committerquou <quou@disroot.org>2024-10-01 19:00:10 +1000
commit7af26595c1d32eb8519b6d864a991dbd377f5ffa (patch)
tree89e1c2fcdcf7ec78eb9b53d2e30477fbb9010dc4
parenta5f6618cd6a692eda3acd934b71355959b388518 (diff)
reduce the enemy jump distance
-rw-r--r--enemy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enemy.c b/enemy.c
index 2ec6a16..66e0e73 100644
--- a/enemy.c
+++ b/enemy.c
@@ -155,7 +155,7 @@ void update_demon_move(Enemy* e, World* w) {
e->face = face_right;
} else if (e->state == enemy_state_approach2) {
if (e->grounded < 3) {
- e->vx = (p->x - e->vx) / 100;
+ e->vx = (p->x - e->vx) / 120;
if (e->face == face_left)
e->vx = -e->vx;
e->vy = -enemy_demon_jump_force;