Tutorial like Snake Game implementation using HTML5 canvas. Take a look at diff between commits to check out implementation steps. Start with commit c6ae93a Create snake model and paint it.
Available at GitHub Pages.
Open index.html in web browser. This project uses ES6 (ES2015) JavaScript features natively (no transpilation). You'll need newer browser.
Inspired by: HTML5 game tutorial - Make a snake game using HTML5 canvas and Jquery
Kudos