- #1
Jamin2112
- 986
- 12
This is more of a user experience question. I'm starting to remake a game (see http://playclassicsnake.com/play ) that works on mobile just as well as desktop. On desktop, one controls the snake (the lime green links) with the arrow keys, but I need a different way to do it on mobile. I tried using an API (http://hammerjs.github.io/) to detect finger swipes, but the problem I was encountering is that the phones interpret up and down swipes as wanting to scroll up and down on the page. I need some other way. Any ideas?
Game logic https://github.com/jamkin/Snake/blob/master/SnakeGame/Scripts/game.js .
Game logic https://github.com/jamkin/Snake/blob/master/SnakeGame/Scripts/game.js .
Last edited by a moderator: