azerion / phaser-spine

A plugin for Phaser 2 that adds Spine support
MIT License
121 stars 58 forks source link

Loading spine assets from atlas #45

Open lukz opened 7 years ago

lukz commented 7 years ago

Hi!

Is there any way to point to other atlas as source of assets for skeleton while loading skeleton?

AleBles commented 7 years ago

At the moment, no. It'll only (dynamicly) include the image files defined in the .atlas.

Any suggestion in a different set of loading? I assume you'd prefer to have the spine included in atlas file that has more sprite available than just the spine ones?

lukz commented 7 years ago

Yup you're right. It can help reducing load time and with optimization (less texture bindings). Also current way is problematic for webpack as by default it changes filenames to hashes and currently plugin is trying to load png and atlas files of the same filename.

I would like to be able to specify atlas key containing those images (and other) while loading skeleton json file.

KidScripty commented 5 years ago

Has this ability been implemented yet?