I wish there is a mode where the snake go toward where my mouse cursor is (similar to agar.io), as opposed to having the controls turn the snake. So in update function where we have the "direction-=.08" and "direction+=.08" bits, "direction" would be assigned a value either due to the pressed state of the 4 arrow keys, or some arctangent of mouse coordinates: https://github.com/kevinAlbs/SphericalSnake/blob/b90773847…
I added thumb/cursor drag, gyroscope and full screen buttons: https://aziaziazi.github.io/SphericalSnake/ Only tested on mobile safari yet.
Very nice! I only tried on desktop, and the pointer mode works great :)