charbelsako / pacman

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

Player shouldn't be allowed to move diagonally #11

Closed charbelsako closed 6 years ago

charbelsako commented 6 years ago

If the player hits the UP/DOWN arrow keys and the 'RIGHT'/LEFT arrow keys at the same time. He CAN move diagonally. This is an easy fix.