Embed all supporting files in one HTML?


Hi guys,

I’m wondering whether it is possible in HTML5 to embed everything in one file in order for example to send it over mail?
So what if I create a cocos2dx-HTML5 [very simple] game and want to send it to someone? Or it would be also ok if on mobile devices that other person could be able to get my “game” once and have it available offline?



For offline game, you need to use “Manifest”, google “html5 manifest”

for packing all files. its just not possible with web browsers.


It is possible, however nobody do it like that.

You may pack all js files to single file, and then copy it to html inline script.

It is overwhelming. How about the image or music of your game? Do you like to convert them to base64?