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

In Safari and Firefox, first time load of base64 encoded images seems off #25

Open TannerRogalsky opened 10 years ago

TannerRogalsky commented 10 years ago

It will work fine after a refresh, though.

screenshot

TannerRogalsky commented 10 years ago

I've spent the morning looking into this and it seems like it might be harder to solve than I originally though. I had figured that any images initialized as data URIs would not load asynchronously. This appears to be the case in Chrome but not in... pretty much anything else.

TannerRogalsky commented 10 years ago

I'm still not sure what to do about this but in the meantime I've switched the inspector example to use pngs preloaded from the DOM because it serves as a better example and... actually works.