The awesome thing about Flash is: Your entire game (sound, graphics, code) is in a single .swf file. You just upload it somewhere, give people the link, and they're playing it.
With HTML5, the latter is also possible (give people a link and they can immediately play it), but, all images files, js files, etc... are separate HTTP requests.
I've been playing a game on Newgrounds once (Soulcaster) where I thought it was Flash, but was already wondering how they implemented the right mouse button. Then it turned out to be an HTML5 game, so it looks like it has matured!
Is there a way to pack an entire HTML5 game into a single file just like a Flash game can go in a single .swf file?
On Newgrounds some HTML5 games have a link like this (will probably not work by the time you click it since the numbers change to avoid direct linking): http://uploads.ungrounded.net/alternate/617000/617592_alternate_329.zip/
How does that work? It's a zip file, but if I open it in a browser it shows the game, but also shows separate HTTP requests for js and image files so it seems to be not what I'm looking for, but intruiging anyway...
So, what's the best way to deploy an HTML5 game?
Edited by Lode, 25 December 2012 - 07:31 AM.