Ashley, sorry to bring this back to discussion, but ... how about this:
I tried to compile using first appMobi ( first using directCanvas, then using the webview ) with same results. Then I tried with Cocoon. Exact same result.
Then, I reduced the frames in my animations to a little under 300 and... it works with all compilers: phonegap, appmobi and cocoon. I then started adding a few frames at a time, and as soon as their number is > 300, the same error is thrown for every method of compiling.
However, it is not about the number of entities in the project, but specifically about the total number of images ( as animation frames ). I added sound files so that the number of objects passed well 300 and it still works as long as the number of items in "images" folder is < 300. Now, this might be because audio files are streamed ( maybe?).
So... where this 300 come from? Who sets this limit?
Thanks, any hint is welcome :)
LE: if it matters, the code that throws the error in c2runtime.js is this ( inside the 'if' ):
ctx.drawImage(cur_image, cur_frame.offx, cur_frame.offy, cur_frame.width, cur_frame.height, myx, myy, w, h);