Skip to content

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 ​

EntryImport pathContents
Runtime@suity/engine-pixiScene loading, nodes/components, assets, input, signals, camera, collision
App@suity/engine-pixi/appDeployment entry createRuntimeApp, scene switching, resize, ticker
Script@suity/engine-pixi/scriptScriptComponent, script handler, script signal facade
Preview@suity/engine-pixi/previewEditor scene preview
Test@suity/engine-pixi/testTest 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 ​

CapabilityDescription
Scene loadingloadSceneInstance accepts documents / Addressable Keys / URLs; Prefabs and overrides are resolved at load time
Nodes and componentsUnified SDK Node and ComponentHandle; getComponent / getComponentInChildren / getComponents
Render componentssuity.transform, sprite, vector, text, image, button, container, camera2d
AssetsTexture, SVG and font caches with sharing; replaceable AssetResolver
InputAction/axis mapping, keyboard and touch sources, beginFrame snapshots
SignalsNode signal provider registry, watch*, the $refresh convention
CameraMain camera registration, getMainCameraView, letterbox and the no-camera presentation
AudioProject mixer, multi-track buses, suity.playAudio and runtime action audio
CullingNode- and chunk-level viewport culling (cullArea)
DeploymentcreateRuntimeApp: Application, scene lifecycle, script bundle, mixer, resize

Compatible modules ​

Pixi 2D ships with the following modules (versions are read at build time):

ModuleIDVersionDocs
9-SlicenineSlice0.7.0Planned
Actoractor0.23.2Planned
Platformer 2Dplatformer2d0.13.1Planned
Skeletonskeleton0.13.1Planned
Sprite AnimationspriteAnim0.12.1Planned
Tilemaptilemap0.28.1Planned
UI Motionmotion0.9.0Planned
Virtual Joystickjoystick0.5.0Planned

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.pixi uses semver ranges such as >=0.15.0 <0.16.0.
  • Contract/format versions are 1 / 1.0.0 in 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 ​

Suity developer documentation · API generated by TypeDoc