This uses ScalaJS. You can play it at https://wildfield.github.io/snake/
Controls:
- Arrow keys to move
- P to pause
- R to reset
A gist explaining what's going on
To build and run locally:
sbt
->fastLinkJS
(http://www.scala-js.org/doc/project/building.html)python3 -m http.server
- http://localhost:8000/index-dev.html