Dots and eating works

This commit is contained in:
Urban Modig
2025-08-16 10:36:54 +02:00
parent 7bcc46122c
commit f15a01837d
5 changed files with 34 additions and 15 deletions

View File

@ -83,6 +83,7 @@ public class PacMan {
Point destination = collisionChecker.getValidDestination(direction, newPosition, COLLISION_BOX_SIZE, COLLISION_BOX_SIZE);
if(destination != null) {
collisionChecker.removeTile(destination);
position = destination;
}
}