Thank you for your response and for your insights.
I think we can both agree that loading sprite sheets this way is messy? I propose that we write a plugin that can load either a sprite sheet or PNG sequences from an external URL.
Do you have any insights on creating C3 addons that implement the IAnimation and IAnimationFrame interface?
I have written C2 plugins before, but seem to struggle a bit getting the C3 addons to work.
Do you or anybody else know how to create a plugin for sprites that implements the IAnimation and IAnimationFrame interfaces so that we can create a solid sprite/png sequence loader from URL.
An example URL could be : domain.com/Sheets/Animation.png.
The plugin can either use a sprite sheet or a PNG sequence.
The plugin can expose some functions that will state whether or not its loading a sprite sheet or a PNG sequence. Additionally, functions can be exposed to state the size of each frame if it is a sprite sheet or alternatively if it is a PNG sequence, a function can be exposed to state the number of images in the sequence. EG: domain.com/Sequence/1-10.png.
The plugin will then create an animation based on the information it receives and download the image(s) and create animation frames at runtime.
** Note, i have seen some examples of c2 plugins that do this, however to translate or understand the new c3 interfaces is proving to be quite challenging.
I think that this plugin/addon is a necessary addition to construct for basic games that need to be themed. The real reason to use spritesheets or png sequences is to add effects or animations around spinning wheels etc.
Please can someone please assist me with understanding the basics of implementing these interfaces so that we can build a plugin that enables this functionality.
Your insights are highly appreciated.