đĄ SDK Concepts¶
SpriteStudio-SDK is a high-performance, engine-agnostic animation player SDK for SpriteStudio. It computes everything needed to play a raster-based 2D animation and hands your engine a ready-to-render plan - so a player only needs to draw, not to re-implement SpriteStudio's animation math.
đ The workflow¶
- Convert - turn a SpriteStudio project (
.sspj) into an optimized binary (.ssab) withlibssconverter(viassconverter-cli, SSConverter GUI,ssconverter-web, or automatic conversion in the player). See Converting Assets. - Play anywhere - pass the
.ssabtolibssruntime. It plays any.ssab; what it covers is listed below, and what it does not cover yet is in Shared Limitations.
graph LR
SS[" .sspj (+ .ssae/.ssce/.ssee/.ssse/.fnt/.ssqe)<br/>+ Images "]
CLI[[" ssconverter-cli / GUI / web "]]
CONV(" libssconverter ")
BIN[" .ssab / .ssqb "]
RT(" libssruntime ")
STATE[" Part States / Mesh<br/>+ DrawBatch plan "]
REND[[" Your renderer "]]
SS --> CLI --> CONV -. generate .-> BIN
BIN --> RT
RT --> STATE --> REND
classDef generated stroke-dasharray: 5 5;
class BIN generated;
đ§ Brain vs. Body¶
libssruntime is the Brain: it evaluates keyframes for the current frame and computes
bone matrices, mesh deformation, and hierarchical color/opacity, then emits a cross-engine
DrawBatch plan. Your player is the Body: it reads the generated vertices and draws
the primitives. Because every renderer consumes the same DrawBatch plan, engine-specific
visual drift is structurally eliminated. (See Porting a Player.)
â What the core provides¶
Because every official player evaluates animations with libssruntime, this feature set is
shared rather than reimplemented per engine:
- Bone hierarchies and transforms, with full keyframe interpolation (Bezier / Hermite / Linear / ...)
- Mesh & deform
- Effect parts (particles)
- Instance parts
- Masks
- 9-slice parts - the runtime builds the whole grid (margins, stretch / tile fill, repeats), so a player only draws the geometry it is handed
- Shape parts - triangles, rectangles, stars and other figures with no texture; the runtime generates their vertices, so a player only draws them
- Text parts - the runtime passes the authored text and, for a bitmap font, its glyph table, and keeps the part's slot in the draw plan; laying out and drawing the glyphs is the player's job
- Parts color (per-part color blending)
- Authored texture change - a per-part texture swap set on the timeline; the runtime resolves it into the draw batch, so a player that binds textures per batch needs no special handling
- Frame-accurate events - user data, signal, audio
- Sub-frame interpolation (smooth playback above the base frame rate - 144 Hz+, slow motion)
- Whole-animation mixing / crossfade (animations stacked on tracks) - what it gives and where each player documents it is on Motion Blending
- The Override Layer API - override a part's color, cell reference, or visibility at runtime; what a player lets you change at runtime is on Changing a Character at Runtime
Source of truth
This list follows the SDK's Player Porting Guide, whose table of contents
(README.md) links to the page that covers each item.
The guide's Introduction â Limitations
(20_limitations.md) draws the
boundary: two of these - text parts and audio events - are computed as state only and still need the player to draw or
play them, and several carry constraints - both are summarized in
Shared Limitations, along with what the core does not do. What
differs between the players themselves is on
Player Differences.
đ Libraries & tools¶
| Component | Role |
|---|---|
libsspj |
Parses .sspj projects (ssae / ssce / ssee / ssse / fnt / ssqe). |
libssab |
Reads/writes the .ssab / .ssqb binary (FlatBuffers). |
libssconverter |
Converts .sspj projects into .ssab / .ssqb. |
libssruntime |
The playback Brain; emits the DrawBatch plan. |
ssconverter-cli |
Command-line converter (Windows / macOS / Linux). |
⨠Why this design¶
- Zero-math integration & visual consistency - the SDK does the state computation; your
engine just renders the shared
DrawBatch. - Ultra-compact payload & SIMD - the
.ssabformat uses a columnar layout and hash-based lookups for near-zero parsing overhead; the runtime leverages SIMD (f32x4), with a WebAssembly build without it for runtimes that have none. - Extreme portability - the core is strict
#![no_std]Rust with no OS/stdlib dependency; integrates via C-API or WASM, from embedded devices to browsers.
âĄī¸ Next¶
- Glossary - the vocabulary used here and in every player's docs.
- Shared Limitations - the constraints that apply to every player.
- Format Specification - the
.ssab / .ssqbbinary and the runtimeFrameDatainterface. - Porting a Player - build a player for a new engine.
- Source of truth: SpriteStudio-SDK.