If I wrote a plugin that interacted with the DOM (I know it has limited use and is slightly off what C2 is about, but netherless I think there are lots of useful applications for it) how would you go about adding extra resources to a plugin so they get exported as well?
IE some images.
There's no way yet, but a good workaround in the mean time would be to nick the texture of an existing sprite - the texture_img member of the Sprite type is a browser Image class for the texture. For example, this.runtime.types["MySprite"].texture_img would get the image for a sprite called "MySprite", which you can then put in the DOM somewhere.
Develop games in your browser. Powerful, performant & highly capable.
Out of curiosity how is that handled if the project doesn't have the sprite object available? (The user didn't add it).