This is something I'm still considering. It depends where I'm going to distribute this game. I'm already thinking about forcing iOS 10 so I don't have to worry about the iPhone 4S screen ratio. The ~76% adoption rate of iOS 10 does make things easier... but that's still 24% of people left out... plus Android. (I'm not sure how video works on that mobile platform.)
The "Sprite" method has better compatibility. Also, I already wrote the code to have it fade in and restart.
It would be nice to just use MP3. That has great browser support...
...but then I see this page...
So, I chose to go with m4a, as it's a single file that has great compatibility. And according to the Wikipedia page, it has other advantages...
The site says it's the successor to mp3 and it has better sound quality. As a developer / publisher, I like using m4a files because there are no licensing issues for distribution.
...but it might be an issue for Tumult / Hype if you decide to do encoding / decoding. Apparently, such software needs a license. The m4a files in my project are large, so compression is an issue. I think this is something that could be a nice feature for Hype, but I don't know the legality of it. Does Hype need a license to use AAC audio if it's just compressing audio files? Can Hype legally leverage macOS to accomplish this?
I don't know.
But basically, not having an audio slot there is annoying. I don't need all the other slots, especially when m4a seems like the better audio format – and I only need the one file.
I'm using Advanced Export because there seems to have been a bug with regular exporting – which doesn't default to index.html.
Another idea for distribution is straight from my website. People could just turn Annoyed Tomatoes into a home screen app. I turned on "Create offline application cache" and I was getting an error as a result. Apparently, renaming tomatoes.html to index.html was not sufficient. I had to export the project specifically with an index.html file. This doesn't make sense, but that's what happened.
The point is, I think it should default to index.html on a regular export – or be a preference setting. So instead of directory/tomatoes.html, I can just use directory as the URL to the Hype project. Sure, some servers don't support index.html and could just show a directory listing instead, but that's rare. It's more common to use index.html as the default... or one of the defaults.
But right now, I've been grabbing the enclosed tomatoes directory. Heh, it screws things up because sometimes I grab the wrong directory. I upload it with FileZilla, having it not replace existing files unless they are newer or a different size. This way, I don't have to keep uploading the same resources all the time.
I looked at phaser.io. It looks like it has the gaming features that are missing from Hype, such as creating and removing elements. (I think it has collision detection too.) So, it's a tough decision. Do I port this game a fourth time, or do I figure out a way to add/remove enemies?
I haven't decided the answer to that question yet. I'm still thinking about it.
For now, I think I'll go check on my real tomatoes. They're turning red.