See on GitHub

js-snake

Snake game written in p5 JS Requires a local node server. install http-server by running “npm install http-server”, then while in the js-snake folder run “http-server”, finally connect to “http://localhost:8080/” and open js-snake.html.