back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/pac.c
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-04-11 15:04:37 +0300
committerscratko <m@scratko.xyz>2024-04-11 15:04:37 +0300
commit235f8481502263fcdb4823ff0bc4e8f831bc934d (patch)
treeaa7bac493c447571ac88f3793447e05ed17c2d6a /pac.c
parent76b875e095d8b9ca3f6058fbfc0ab2669eed852d (diff)
downloadpacman-235f8481502263fcdb4823ff0bc4e8f831bc934d.tar.gz
pacman-235f8481502263fcdb4823ff0bc4e8f831bc934d.tar.bz2
pacman-235f8481502263fcdb4823ff0bc4e8f831bc934d.zip
Removed the reverse motion for ghosts
Yellow intersections added.
Diffstat (limited to 'pac.c')
-rw-r--r--pac.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pac.c b/pac.c
index 241609b..ed929ae 100644
--- a/pac.c
+++ b/pac.c
@@ -161,4 +161,5 @@ void make_pac_move(game_space field, struct pacman *pac,
}
if(check_coin(field, pac->position, eaten_coins))
queue_push(eaten_coins, &pac->position);
+ change_point_if_outside_tunnel(&pac->position);
}