Basic Snake Game in TypeScript
Just for fun. It's written in vanilla js, no libraries used. Also it uses HTML elements to render the game instead of canvas.
G
= Show GridC
= No Clip Mode, go through self and wallsJ
= Slow down the snakeK
= Speed up the snakeSPACE
= Pause, Resume gameRETURN
= start the game1 - 4
= Change levels0
remove levelnpm install
to get all dependenciesnpm run build
to build the appnpm run dev
to get the game running on your browser