Wizcorp / Ejecta-X

A Fast, Open Source JavaScript, Canvas & Audio Implementation
http://wizcorp.github.io/Ejecta-X
185 stars 51 forks source link

Add check to cache before bundle and full path support. #66

Closed jrouault closed 10 years ago

jrouault commented 10 years ago

To try the cache, you can add this in EjectaRenderer.java:

Utils.copyDatFiles(ctx, dataBundle + "/cache/", "www");

In index.js, you can try this:

img.src = '/data/data/com.impactjs.ejecta.sample/cache/bg.png';
img.src = 'file:///data/data/com.impactjs.ejecta.sample/cache/bg.png';
img.src = 'bg.png';
aogilvie commented 10 years ago

:credit_card: mmmmm cache checks.