phaserjs / phaser

Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
https://phaser.io
MIT License
37.09k stars 7.1k forks source link

Spine objects cannot have the same texture atlas filename #6022

Closed orjandh closed 1 year ago

orjandh commented 2 years ago

Version

Description

When using the Spine plugin, two spine files cannot have the same texture atlas png filename.

Example:

assets/spine1/skeleton.json assets/spine1/skeleton.atlas assets/spine1/skeleton.png <- same filename

assets/spine2/skeleton.json assets/spine2/skeleton.atlas assets/spine2/skeleton.png <- same filename

For some reason, the two spine game objects will now share the same texture atlas png. The atlas definition itself will be different, so it will be rendered as a chopped up Picasso-esque image.

Example Test Code

this.load.spine('spine1', 'assets/spine1/skeleton.json', 'assets/spine1/skeleton.atlas', true);
this.load.spine('spine2', 'assets/spine2/skeleton.json', 'assets/spine2/skeleton.atlas', true);

Additional Information

photonstorm commented 1 year ago

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

spayton commented 1 year ago

does this also need applying to the spine41 plugin