0

WASD

In my ¨Endless Snake Game¨ code, my output browser scrolls up and down, because the arrow keys are the controls. How do I make them into WASD controls??

14th May 2018, 1:28 PM
William Parker
William Parker - avatar
2 Réponses
+ 2
Make a keypress event on your document and check the keyCode
14th May 2018, 1:33 PM
Toni Isotalo
Toni Isotalo - avatar
14th May 2018, 1:37 PM
Rajeeb