Basic score count working
update takes movement into account
This commit is contained in:
@ -7,7 +7,7 @@ import java.awt.Point;
|
||||
public class ClydeStrategy implements GhostStrategy {
|
||||
@Override
|
||||
public Point chooseTarget(Ghost clyde, PacMan pacman, GameMap map) {
|
||||
Point pacTile = pacman.getTilePosition();
|
||||
Point pacTile = pacman.getPosition();
|
||||
Point clydeTile = clyde.getPosition(); // ghost’s current tile
|
||||
|
||||
double distance = pacTile.distance(clydeTile);
|
||||
|
||||
Reference in New Issue
Block a user