pixi-svelte is the rendering layer of the Stake Engine Web SDK. It wraps PixiJS 8 display objects as declarative Svelte 5 components, so you can build a 2D game scene the same way you build a web page.
It is also published as a standalone npm package at npmjs.com/package/pixi-svelte.
Current version: 2.1.0
Key dependencies
Components
All components are exported from the package root:Component reference
createApp()
Creates the reactivestateApp object that drives the <App /> component and tracks asset loading.
stateApp fields
loadedAssets is populated by PIXI.Assets.load and can be passed directly to <Sprite /> and other pixi-svelte components.
ContextApp
stateApp is shared with child components through Svelte context:
'@@pixi_svelte'.
pixi-svelte uses the built output in dist/. If you change any source file under packages/pixi-svelte/src/, rebuild before your changes take effect: