Made a game with HTML, CSS, and JS


Why?

The game is basically 90% UI and clicking buttons. Which is basically what you do on a web page. So I figured, why not make it a webpage.

The advantages of this:

  • Super fast load times
  • Small file size
    • ~2MB finish build, Most of this is from images or audio
  • HTML and CSS are great for UI building
  • You know it's going to work on the browser
  • The basics can be fast to set up
  • JavaScript is easy to google answers for

The disadvantages of this:

  • Multiple pages can be hard, so you have to keep it simple
    • (maybe that's a good thing here?)
  • You have to deal dynamic types in JavaScript
  • If you want systems that come standard with frameworks or engines, you have to implement it yourself.

This was a fun exercise to return to where I first started programming from. 

I'd encourage everyone to try to do this IF you can fit your game on 1 page AND your game is mainly interacting with the UI

Leave a comment

Log in with itch.io to leave a comment.