Introduction

If there’s one thing that left a huge impression on me growing up, it was the cool games of the 80’s and 90’s that were incredibly simple but also really fun to play. I also learned basic programming around this time, so naturally it wasn’t long before I started to create my own simple games.

Back in 2015, I created this old-school snake game in TypeScript, to test out the graphical features of the canvas object in HTML5, and to get a feel for how it could be used to re-create classic 2D games from the ground up.

I chose TypeScript because I had built several UIs and UI frameworks with it by that time, many of them modeled closely after my experience with C# and WPF. This made it a great choice for quickly prototyping a custom game engine from scratch, where I wanted flawless performance and virtually bug-free behavior (we always want bug-free software, but in this case I got to build the entire game from scratch using the tools of my choice, so I actually got it).

The entire project is open-source and available here, so if you feel like it, grab a copy and have fun experimenting with it and seeing what you come up with.