TannerRogalsky / punchdrunk

An attempt to replicate the LÖVE API in the browser using moonshine.
http://tannerrogalsky.com/punchdrunk/
MIT License
81 stars 10 forks source link

Preloading media. #3

Open TannerRogalsky opened 10 years ago

TannerRogalsky commented 10 years ago

Because media is loaded asynchronously in the browser as opposed to synchronously in Love we require some of form of preloading in order for media to be available immediately when the Lua code requires them.

I don't think it's necessary for this to be a perfect solution for an alpha release but it should at least minimally exist.

TannerRogalsky commented 10 years ago

For the sake of the alpha, I think that just putting the assets into tags on that index page should be fine. I'm moving this to the beta milestone with the intent of having a more robust solution then.