charbelsako / pacman

made this pacman replica. now with Neuro Evolution
https://charbelsako.github.io/pacman/
0 stars 0 forks source link

When the pink ghost reaches his corner you die. #12

Closed charbelsako closed 6 years ago

charbelsako commented 6 years ago

The pink ghost is the scared ghost. i.e when he gets too close to the user he gets scared and runs away to his corner. Because of this the user was dying when he gets to his corner.

SOLUTION had to add a this.canKill property.