Hacker News new | ask | show | jobs
by hlandau 1304 days ago
We can't distribute an entire game or animation as a single file which can be downloaded or embedded on a website. Think about things like Newgrounds.

I mean I guess you could do something awful with base64 encoding assets into a giant HTML file, but that sounds horrible.

Flash was also a platform for hosting bandwidth-efficient animation and people have just gone to using video now. That sacrifices incidental, easter egg-type interactivity and drives people to centralised services like YouTube.

2 comments

Isn't that what EPUB is for? It could even be embedded in an iframe similar to how you can embed PDF.
If only browsers would support it.
emscripten gets pretty close via webassembly, you can embed all your assets... but it takes awhile to load before anything's happening when done that way.
Flash also took time to load. The sites used loaders with progress bars for larger flash apps as well.
But it supported progressive loading. You could load only the first level and then load the next on-demand
You can still do that with wasm by splitting the code. You need to loop through js to connect them, but for things like levels, you can likely do that or just memcpy between those environments.