General Opinion Poll - File Size vs. Media
Added 2019-05-11 01:34:37 +0000 UTCRight now I am looking at adding a soundtrack to the game of sea shanties, to really give it that pirate feel. Typically I would want to use something like MIDI, but it appears that browser support for it is very poor and my compiler will not bundle MIDI files anyway, so I'll be stuck using something like .MP3 instead which comparatively is a huge file format and will baloon the game size to about 32mb from 8mb.
I've been trying to stay away from adding too much media to this game, or when I do, using it sparingly and with small / compressed files, so I can keep the file size of the game down to the minimum. I also try to keep it one file, so I've been bundling the media which technically makes them bigger because they get base64 encoded.
Anyway, I have a survey that I would like people to respond to here if they have the time. It'll help me decide how to format the project going forward.
Please select any that apply!
Comments
Yeah, I've had some thoughts in that area as well because that's the pretty obvious benefit (being able to substitute your own images). Someone posted recently they they used an editor to just manipulate the CSS in the game for that purpose. I wonder how many people do this? I also wonder how big is "too big" for a single HTML file.
2019-05-11 10:58:22 +0000 UTCI'm not a fan of embedding too much media into the html file. I would suggest having optional media in a separate folder relative to the html. That way you can package game updates as media or html file updates packages, saving people time from DLing too much too often. Of course, this sort of thing can confuse people too, but I'm sure it can be explained and be clearly labeled. It would also open the door for customization where people can insert their own assets to replace common media such as the new music or even graphics such as the slot completion images as suggested in forum thread.
Guy Fawks
2019-05-11 10:54:11 +0000 UTC