05-08-2022, 04:33 PM
Hi!
Good work, and thanks for your contribution!
Nowadays the .sqx format is only used for color cycle animation, but is kept for backwards compatibility with old code.
There's a function called TLN_CreateSpriteSequence() that allows creation of a sprite-based sequence from a numbered sequence of sprites inside a given spritesheet. This is more convenient, as the graphics artist just needs to give numbered names to sprite fames and the engine will build the sequence, without the need of an additional sqx file.
Please take a look at forest.c:
https://github.com/megamarc/Tilengine/bl...rest.c#L67
And this is the corresponding spriteset file:
https://github.com/megamarc/Tilengine/bl....json#L426
As you can see, Tilengine also reads standarised .json atlas format used by many engines and authoring tools. So you can tweak your new tool so it outputs this same format, with numbered sequence of named frames, and the engine will do the rest with a single API call to build the sequence.
Let me know how it progress!
Good work, and thanks for your contribution!

Nowadays the .sqx format is only used for color cycle animation, but is kept for backwards compatibility with old code.
There's a function called TLN_CreateSpriteSequence() that allows creation of a sprite-based sequence from a numbered sequence of sprites inside a given spritesheet. This is more convenient, as the graphics artist just needs to give numbered names to sprite fames and the engine will build the sequence, without the need of an additional sqx file.
Please take a look at forest.c:
https://github.com/megamarc/Tilengine/bl...rest.c#L67
And this is the corresponding spriteset file:
https://github.com/megamarc/Tilengine/bl....json#L426
As you can see, Tilengine also reads standarised .json atlas format used by many engines and authoring tools. So you can tweak your new tool so it outputs this same format, with numbered sequence of named frames, and the engine will do the rest with a single API call to build the sequence.
Let me know how it progress!