pixijs / spine-v8

PixiJS v8 port of the official spine runtime
https://pixijs.io/spine-v8/examples/
MIT License
38 stars 6 forks source link

JSON example #16

Closed gevhambarzumyan93 closed 5 months ago

gevhambarzumyan93 commented 5 months ago

Problem

It is a bit hard to handle JSON. (I tried with Raptor and almost broke my monitor.)

Solution

Please create an example JSON file. (You already added a Raptor asset for that.)

Zyie commented 5 months ago

Hi, we are only trying to copy what is in the official spine runtime repo. If you need a specific example made please add your issue to the main project:

https://github.com/EsotericSoftware/spine-runtimes

gevhambarzumyan93 commented 5 months ago

I already find the solution so could you add it to your example files if i pass it to you?

vlasenkoigor commented 2 months ago

I already find the solution so could you add it to your example files if i pass it to you?

Do you have the one? Can you share please ?

gevhambarzumyan93 commented 2 months ago

Do you have the one? Can you share please?

this is the working version

this handles the main part

 const attachmentLoader = new AtlasAttachmentLoader(Assets.get(atlas));
    const spineJsonParser = new SkeletonJson(attachmentLoader);

    const skeletonData = spineJsonParser.readSkeletonData(Assets.get(skeleton));

    this.spine = new Spine(skeletonData);
vlasenkoigor commented 2 months ago

Do you have the one? Can you share please?

this is the working version

this handles the main part

 const attachmentLoader = new AtlasAttachmentLoader(Assets.get(atlas));
    const spineJsonParser = new SkeletonJson(attachmentLoader);

    const skeletonData = spineJsonParser.readSkeletonData(Assets.get(skeleton));

    this.spine = new Spine(skeletonData);

thanks!!