Snake game. Control is supported through both keyboard and
smartphone touchscreen. Control the snake using the arrow keys
↑→↓←, and adjust the snake's speed with the +/-keys. On a
smartphone, control the snake by tapping the sides of the screen.
The game is built using JavaScript, CSS3, and HTML5.
JavaScript Keywords: modules,
requestAnimationFrame, Async programming and LocalStorage. CSS Keywords: CSS Grid layout, CSS Flexbox, Media queries, Mobile first approach, CSS variables.
JavaScript code:
You Lose! Press any key
This is a new record: mice