charbelsako / pacman

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

Add The Original Pacman Logic To Ghosts #4

Closed charbelsako closed 6 years ago

charbelsako commented 6 years ago

In the original game of pacman. Eeach ghost has a specific logic to where to go.

This needs a direction variable to know where the user is heading. Also there's going to be a few edge cases. Other than that. The ghost will need a mode variable. Which will be useful when attempting to implement Issue #5 . This can be easily implemented since i already know when the user hits any specific arrow key, thanks to the keyIsDown() function