JS Game Engine
In my continuing journey to continue using vanilla JavaScript for things it probably shouldn't be used for, I made a small little engine for navigating an overworld in JavaScript.
This came from an ambitious project of making a small RPG like game that would have an inventory, the ability to interact with the overworld, and turn-based battles. I had already made a rudimentary turn-based battle engine in JQuery for a school project once (don't ask) so I wanted to focus on navigation and movement.
I chose to do it with vanilla JavaScript for several reasons:
- hubris
- easy to share the result with other people
- wanting to familiarize myself with more of JavaScript
- understanding more web APIs
I originally did it on repl.it back when you could have unlimited free repos, which also made it easy to modularize the code using, well, JavaScript modules. repl.it has since limited the number of free repos you can have to three (and also deleted some of my oldest repos without my knowledge), so I've since had to move elsewhere for spur-of-the-moment prototyping.