Description
I think there is an issue with sprite sheet images loaded via a manifest when that manifest has a base path specified.
Here's how it goes. The manifest is loaded fine. It sees a request for a sprite sheet and loads it fine. This sprite sheet points to a png file. PreloadJS uses the base path from the manifest and loads the sprite sheet image. At this point, it should be done.
However, as I can see in the Network tab of the developers tools, it then tries to load the sprite sheet image once more without the base path. Of course, this does not work and throws a 404. Because of that 404, the image is not available and the sprite sheet does not work.
Manifest:
{
"path": "ressources/" ,
"manifest": [
{"id": "random", "src": "images/some-image.png"},
{"id": "hero", "src": "spritesheets/hero.json", "type": "spritesheet"}
]
}
Sprite sheet:
{
"images": ["spritesheets/hero.png"],
"frames": [
[0,0,150,150,0,0,0],
[150,0,150,150,0,0,0]
]
}
Am I missing something or this should work ? Obviously, if I remove the base path and use full paths everywhere, it works just fine.
P.S. I'm using preloadjs-NEXT.combined.js
re-downloaded this morning.