Snake Game in Typescript, using canvas
This is a test, playing with Canvas. It is a basic working version of a 'snake' game, implemented in Typescript. I remember seeing a game of Snake in QBASIC when I was a kid, and back then I had no idea how to implement it.
This is something written to play with canvas. It has no automated tests, it isn't very performant. But it is quite easy to read and understand. Please don't write production code like this :)
sorry this breaks usage of keyboard on this page. You cannot scroll with the arrow buttons - they fully control the snake game while visiting this page.