Skip to content
Heinrich Reich

Spriter runtime for Java

A Java library that reads animation files from the 2D animation software Spriter and makes them playable in different Java graphics environments.

Status
No longer actively developed (my own development 2012–2020)
Period
2012 – 2020
Technologies
  • Java
  • Parsing
  • Runtime

What the project does

Spriter is a 2D animation tool from BrashMonkey. The library reads its SCML and SCON file formats and provides a data model and a player that computes the animations. It is aimed at Java developers who want to play Spriter animations in their own games or applications.

The README describes features such as switching animation, speed and time, transformations, bone and object manipulation at runtime, listeners for events, bounding boxes with collision tests, interpolation and composition of animations, inverse kinematics, attachments and character maps.

Constraints

Java games and applications use very different graphics layers, so the library should not be tied to one rendering technique. The README provides examples for LWJGL, Slick2D, Java2D and LibGDX.

My role

I developed the library starting in November 2012; the copyright notice in LICENSE.txt names me (2016, Trixt0r / Heinrich Reich). Contributions from others followed later: in September 2022, a pull request from another developer for GWT compatibility was merged.

Key design decisions

  • Backend-independent core: users implement the abstract classes Loader (loading and storing sprites) and Drawer (drawing and debug drawing). The data model and playback logic stay separate from them.
  • A clear processing chain: SCMLReader or SCONReader produce a Data object, from which a Player for an entity is created. Each frame is updated first and drawn afterwards.
  • Manipulation between update and draw: changes to bones and objects only take effect between those two calls, which keeps the order of computation predictable.
  • Combining animations: a PlayerTweener interpolates two players using a weight. With baseBoneName the blend can be limited to part of the skeleton, for example shooting while running.
  • Extensible inverse kinematics: a CCD resolver (cyclic coordinate descent) is the default, and other algorithms can be added through IKResolver.
  • Attachments and character maps: objects can be attached to animated bones, and character maps can be applied at runtime.

Tradeoffs and limitations

  • More setup effort: users have to write Loader and Drawer for their backend or adopt one of the examples.
  • Examples not optimized: according to the README, all examples except the LibGDX one are not tuned for performance.
  • Tweening needs similar animations: according to the README, interpolation only makes sense if both animations have a similar structure and identically named bones.
  • Development state: the README carries a “WIP” note. I did not check how far newer Spriter versions are supported for this page.

Technologies and why

  • Java: the target platform is Java games and applications, including LibGDX.
  • Gradle and Maven: the repository contains build.gradle and pom.xml for building and publishing.
  • A dedicated SpriterTests project: examples such as AnimationSpeedTest, CollisionTest, InterpolationTest, InverseKinematicsTest, AttachmentTest and CompositionTest each demonstrate one feature in a runnable program.

Current status

My own development ran from 2012 to 2020. I do not actively develop the library today. The repository is public and includes a license file (Apache License 2.0 according to LICENSE.txt). The last commit on the default branch is the merge of a pull request from September 2022.

This page is based on the README, LICENSE.txt, file structure and commit history of the public repository (as of 7 November 2026). I did not re-read the source code in detail for it.

← Back to profile