Skip to content

SpriteStudio/SSPlayerForGodot

Repository files navigation

日本語 | English

SpriteStudioPlayer for Godot

This repository is a work-in-progress version. No warranty or support is provided for this repository, and we cannot respond to feature requests or bug reports. Interfaces may change without notice. A migration guide for v1.x users will be provided as a separate document.

A plugin for playing back animations created with OPTPiX SpriteStudio inside Godot Engine. Animation playback uses libssruntime provided by SpriteStudio7-SDK.

Overview

The diagram below shows how data flows through the plugin from authored assets to in-game playback.

Diagram legend

  • Shapes: [ ] data/files, ( ) libraries/components, [[ ]] tools/applications
  • Arrows: --> data flow, -.-> dependency/reference
  • Borders: dashed borders indicate generated files.
graph LR
    subgraph Assets ["Project assets"]
        SS[" .sspj / .ssae / .ssce "]
        IMG[" Image files / .png "]
    end

    subgraph Convert ["Convert (choose one)"]
        DOCK[[" SS Import Dock<br>(built into Godot Editor) "]]
        CLI[[" ssconverter-cli<br>(SS7-SDK Releases) "]]
        SS --> DOCK
        SS --> CLI
        DOCK --> BIN[" .ssab / .ssqb "]
        CLI --> BIN
    end

    subgraph Runtime ["Godot runtime (playback)"]
        BIN --> RES(" SSABResource ")
        RES --> NODE(" SpriteStudioPlayer2D ")
        NODE -.-> RT(" libssruntime ")
        IMG --> NODE
        NODE --> RENDER[[" Godot rendering "]]
    end

    classDef generated stroke-dasharray: 5 5;
    class BIN generated;
Loading

There are two ways to convert .sspj to .ssab / .ssqb. Files produced by either method are loaded as SSABResource / SSQBResource in Godot. See USAGE.md for details.

  • Nodes
    • SpriteStudioPlayer2D: A Node2D-based node for playing back SS animations.
  • Resources
    • SSABResource: Resource representing a converted animation binary (.ssab).
    • SSQBResource: Resource representing a converted sequence binary (.ssqb).
  • Editor extension
    • SS Import Dock: An import control that converts .sspj to .ssab / .ssqb via libssconverter.

Supported Versions

Build and execution have been verified on Windows / macOS.

Quick Start

The shortest path: download a prebuilt GDExtension and use it without any local build.

1. Install Godot Engine

Download a 4.6-series editor from the official site.

2. Get the SSPlayerForGodot GDExtension

Download the GDExtension package for your target platform from the SSPlayerForGodot Releases page.

3. Drop it into your project

Copy the downloaded GDExtension files (the addons folder inside the ZIP) directly into your Godot project's root directory. When placed correctly, res://addons/spritestudio/spritestudio.gdextension should exist. After restarting the Godot editor, the SpriteStudioPlayer2D node and the SS Import Dock become available.

4. Convert and play SpriteStudio data

For converting .sspj and playing it back via SpriteStudioPlayer2D, see USAGE.md.

Samples

Sample projects are available under the examples folder.

Note: Existing samples were created for the v1.x .sspj direct-load workflow and need to be migrated to the current .ssab / .ssqb workflow before they will run on this branch. They will be updated alongside the migration guide.

Building / Developing

If you want to build the GDExtension or a custom-module Godot Engine yourself, or to develop the plugin in parallel with SS7-SDK, see BUILD.md.

Related Repositories

License

See LICENSE.txt.

About

Official Godot Engine plugin for OPTPiX SpriteStudio, a professional 2D animation tool for game development.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors