English
Installation
Choosing a package
Pick the one package that matches your environment.
| Environment | Package |
|---|---|
Frameworkless / drop-in (includes the <ss-player> Web Component) | @spritestudio/ssplayer-webgl |
| Apps already built on PixiJS v8 | @spritestudio/ssplayer-pixi |
Buttons drawn by animations in a PixiJS v8 app (@pixi/ui) | @spritestudio/ssplayer-pixi-ui |
| Building your own renderer on a custom engine | @spritestudio/ssplayer-core |
| A game made in RPG Maker MZ | @spritestudio/ssplayer-rmmz (a plugin) |
| A TyranoScript visual novel | @spritestudio/ssplayer-tyranoscript (a plugin) |
| A game made in TyranoBuilder | @spritestudio/ssplayer-tyranobuilder (a .tbp plugin) |
Each renderer package re-exports @spritestudio/ssplayer-core, so you don't need to install the core separately; @spritestudio/ssplayer-pixi-ui re-exports @spritestudio/ssplayer-pixi in the same way.
RPG Maker MZ, TyranoScript and TyranoBuilder take a plugin rather than an npm package, and need no code: each one's page has its whole setup, and what each does not cover is in Limitations & Scope. The rest of this page installs the other packages.
Install
bash
# Standalone renderer with no dependencies
pnpm add @spritestudio/ssplayer-webgl
# For apps built on PixiJS v8 (pixi.js is a peer dependency)
pnpm add @spritestudio/ssplayer-pixi pixi.jsbash
# Standalone renderer with no dependencies
npm install @spritestudio/ssplayer-webgl
# For apps built on PixiJS v8 (pixi.js is a peer dependency)
npm install @spritestudio/ssplayer-pixi pixi.jsssplayer-webgl requires no extra dependencies. When using ssplayer-pixi, pixi.js@^8.19 is a peer dependency, so add it to your app.
No bundler? Both load straight from a CDN — see WebGL or PixiJS.
Prerequisites
- The browser must support WebGL (version 1 or 2 for
ssplayer-webgl, version 2 forssplayer-pixi).ssplayer-pixialso runs on WebGPU: PixiJS v8 uses WebGL unless you passpreference: 'webgpu'toapp.init(), and then falls back to WebGL where the browser has no WebGPU. - The browser must support WebAssembly SIMD (see Limitations & Scope).
- Projects must be authored in SpriteStudio 7.6 or later.
- Playback needs a
.ssab(runtime binary). See Preparing assets for how to convert a SpriteStudio.sspj.
Next, head to the Quick start.