Removed collisionmask for large pellets

This commit is contained in:
Urban Modig
2025-08-28 17:39:49 +02:00
parent 76cb35c955
commit 09e0396cc3
4 changed files with 29 additions and 4 deletions

View File

@ -77,13 +77,12 @@ public class PacMan {
PACMAN_SIZE,
PACMAN_SIZE, null);
g.drawImage(COLLISION_BOX, position.x - COLLISION_BOX_OFFSET, position.y - COLLISION_BOX_OFFSET, COLLISION_BOX_SIZE, COLLISION_BOX_SIZE, null);
g.setColor(Color.BLUE);
//g.setColor(Color.BLUE);
//g.fillRect(position.x-1, position.y-1, 3, 3);
}
public void update() {
updateAnimationTick();
//if(direction == Direction.NONE) return;
if(moving) {
Point newPosition = switch (direction) {
case RIGHT -> new Point(position.x + speed, position.y);