2D Game Prototype Try it out
This prototype exists as more of a proof of concept than anything else, to see if something like this could be done within the confines of a web browser. However, if I have spare time in the future, then it would be a perfect project to expand upon later.
There were many roadblocks and obstacles to overcome during development of this project, such as drawing the level, collision detection, horizontal and vertical scrolling, and more. In order to get this project to a working state in a reasonable amount of time, I opted to use as simple graphics as possible.
One feature that I felt was very important to implement was gamepad support, which ended up being more of a challenge than I had originally thought. The biggest issue was that different web browsers had varying levels of gamepad support, with Chrome/Edge typically being the best, Firefox for desktop being a bit worse, and Firefox for mobile devices not working at all. I wanted to support as many different controllers as possible instead of just XInput controllers, but due to these restrictions, it just wouldn't be possible without forcing users to view the page from a Chromium browser.
Overall, I am very happy with what I've created here. If you would like to try it out, use the link above. Also, make sure to check back here every once in a while to see if there are any further updates.