TLDR Features:
- On the back end, use rollup/roadrunner to minify and compress JS source, note file size
- Display this size out of 13KB in the editor
I participate in a game jam every year called JS13k, and part of the process is setting up rollup/roadrunner/etc to keep your source code under 13KB.
Glitch has some nice features that make building and serving a small game to people easy.
What would be nice is if Glitch had a special type of editor view that keeps an eye on the total size of your source code and displayed it, possibly as a progress bar. A more advanced version would do rollup and zip encoding to determine the total size that way. There’s a “server” category that allows a simple websocket connection for multiplayer games, and that would fit into a Glitch project neatly. All of the js13k rules could be validated on Glitch’s side.
I do see that Glitch shows a “disk space” bar which is close. JS13k allows minified/zipped code, so the fully expanded code size isn’t exactly what we need.
Currently many people use a template to handle the logistics of building/deploying their game, but it could be easier.