diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-07-15 19:11:10 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-07-15 19:11:10 +0100 |
commit | 9f7bd4ccfc1adb1fb98744a0ac0d344a40c23121 (patch) | |
tree | b90741a7d07af3d5a728b31a7244160dc96ef8d3 | |
parent | 52184a396ecd124bf3b304ac026ff07c84414971 (diff) | |
download | gold-mine-run-9f7bd4ccfc1adb1fb98744a0ac0d344a40c23121.tar.gz gold-mine-run-9f7bd4ccfc1adb1fb98744a0ac0d344a40c23121.zip |
Better at deciding when to jump
-rw-r--r-- | src/old.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -110,6 +110,7 @@ void old_update(Entity *e) if (e->flags > ENEMY_JUMP_DELAY && map_is_blocked(e->x + 7, e->y - 1) + && !map_is_blocked(e->x, e->y - 9) && !map_is_blocked(e->x + 7, e->y - 9)) { e->gravity = GRAVITY_UP; @@ -130,6 +131,7 @@ void old_update(Entity *e) if (e->flags > ENEMY_JUMP_DELAY && map_is_blocked(e->x + 7, e->y - 1) + && !map_is_blocked(e->x + 15, e->y - 9) && !map_is_blocked(e->x + 7, e->y - 9)) { e->gravity = GRAVITY_UP; |