This guide explains how to implement a SpriteStudio Player for any game engine or platform using libssruntime (the Brain). The Brain computes the animation state, and the Player loads the ssab, draws, notifies events and plays sounds (Overview).
Every page of this guide is available in English, and each page has a Japanese source: the language selector in the site's header switches to it, and on GitHub each page links to it at the top. The Japanese version is the source of truth. If the two disagree, follow the Japanese page and report the discrepancy.
How the pages are written: Each page begins by stating what the Player does on that page. "Do โฆ" and "Do not โฆ" mark what you must follow; "We recommend โฆ" marks what you may choose. Terms are used in the sense given in the Glossary.
Code examples: They are written in C++ that calls the C-API. Where an example uses a function that does not exist (such as the engine's drawing routine), the example says so next to it.
The SDK's tests/overall/overall.sspj contains an animation for each feature. Implement in the order below, and at each stage compare whether it looks the same as in the SpriteStudio editor. When it does, that stage is done.
Stage
Animation to check
What to check
Pages to read
0. Preparation
โ
The build passes, and you can read animation names from the ssab
The 9-slice corners are preserved when scaled up. Shapes and text appear. Sounds play on the expected frames. With texture change, two parts are drawn with different textures. A mask inside a child animation takes effect in the parent