Closed Wimell closed 11 months ago
Hey! Love that you've included animations directly inside the spritesheet, I'm trying to utilize this for a small project on Ducket.net. But I'm running into an issue when creating the spritesheets.
Looking at the JSON sprite sheets in Scuti-Resources
Specifically the Cine Star vs template there does seem to be some additional functionality inside the compiled resources.
For example, inside the compiled sprite we have:
"spriteSourceSize": { "x": -1, "y": -132, "w": 55, "h": 156 },
Which has the X + Y attrs set.
But inside the spritesheet.tpl these are hardcoded to 0.
"spriteSourceSize": { "x": 0, "y": 0, "w": <%= image.width %>, "h": <%= image.height %> },
Wondering if there are some uncommitted changes that havent been pushed to the repo?
Resolved - This was my bad.
I am working with xml files that do not double up the classname (throne_throne_64_b_0_0) and I had to adjust the OffsetBuilder.ts
(throne_throne_64_b_0_0)
OffsetBuilder.ts
Code can be seen here
Hey! Love that you've included animations directly inside the spritesheet, I'm trying to utilize this for a small project on Ducket.net. But I'm running into an issue when creating the spritesheets.
Looking at the JSON sprite sheets in Scuti-Resources
Specifically the Cine Star vs template there does seem to be some additional functionality inside the compiled resources.
For example, inside the compiled sprite we have:
Which has the X + Y attrs set.
But inside the spritesheet.tpl these are hardcoded to 0.
Wondering if there are some uncommitted changes that havent been pushed to the repo?