Pixi 2D
Pixi 2D is Suity's first engine implementation, built on PixiJS v8. It covers the rendering, input, camera, audio and debugging capabilities needed by 2D games and interactive apps.
Engine 0.15.47 Runtime 0.19.5 Package @suity/engine-pixi
Package layout
| Entry | Import path | Contents |
|---|---|---|
| Runtime | @suity/engine-pixi | Scene loading, nodes/components, assets, input, signals, camera, collision |
| App | @suity/engine-pixi/app | Deployment entry createRuntimeApp, scene switching, resize, ticker |
| Script | @suity/engine-pixi/script | ScriptComponent, script handler, script signal facade |
| Preview | @suity/engine-pixi/preview | Editor scene preview |
| Test | @suity/engine-pixi/test | Test helpers |
pixi.js is a peer dependency (^8.22.0); the app installs it so it shares one Pixi instance with the scene loader.
Runtime capabilities
| Capability | Description |
|---|---|
| Scene loading | loadSceneInstance accepts documents / Addressable Keys / URLs; Prefabs and overrides are resolved at load time |
| Nodes and components | Unified SDK Node and ComponentHandle; getComponent / getComponentInChildren / getComponents |
| Render components | suity.transform, sprite, vector, text, image, button, container, camera2d |
| Assets | Texture, SVG and font caches with sharing; replaceable AssetResolver |
| Input | Action/axis mapping, keyboard and touch sources, beginFrame snapshots |
| Signals | Node signal provider registry, watch*, the $refresh convention |
| Camera | Main camera registration, getMainCameraView, letterbox and the no-camera presentation |
| Audio | Project mixer, multi-track buses, suity.playAudio and runtime action audio |
| Culling | Node- and chunk-level viewport culling (cullArea) |
| Deployment | createRuntimeApp: Application, scene lifecycle, script bundle, mixer, resize |
Compatible modules
Pixi 2D ships with the following modules (versions are read at build time):
| Module | ID | Version | Docs |
|---|---|---|---|
| 9-Slice | nineSlice | 0.7.0 | Planned |
| Actor | actor | 0.23.2 | Planned |
| Platformer 2D | platformer2d | 0.13.1 | Planned |
| Skeleton | skeleton | 0.13.1 | Planned |
| Sprite Animation | spriteAnim | 0.12.1 | Planned |
| Tilemap | tilemap | 0.28.1 | Planned |
| UI Motion | motion | 0.9.0 | Planned |
| Virtual Joystick | joystick | 0.5.0 | Planned |
Modules declare SDK compatibility through sdkApiVersion and an engine range through engines.pixi.
Versioning
- Engine version (
engine.json.version) and runtime version (runtimeVersion) evolve independently. - Module
engines.pixiuses semver ranges such as>=0.15.0 <0.16.0. - Contract/format versions are
1/1.0.0in Generation 1; package semver is not reset. - Engine and module packages are published by the extension workspace's release tooling; the docs are rebuilt afterwards and versions update automatically.
API reference
- Runtime API — scenes, nodes, components, assets, input, signals, camera
- App Entry API — deployment entry
- Script API — script components and script signals
