This skill sets up and structures a PixiJS 8.22 game renderer for an agent. It covers the async Application and await app.init, loading textures and bundles through Assets, building layers from Containers, running game logic in one ticker callback scaled by delta time, and turning on pointer events per object.
It names the failures behind blank canvases and dead clicks: init that was not awaited, the ticker argument mistaken for a number, eventMode left at passive, and drag that stops at the sprite edge.
What You Get
- A workflow written for v8, where boot, loading, Graphics and events changed from v7
- Patterns for async boot, layer Containers, a delta-time ticker loop, pointer dragging with globalpointermove, asset bundles and render groups
- A smoke script that reports the renderer backend, stage children, ticker state and canvas size, and saves a screenshot
- A long gotcha list including Texture.from, leaf addChild, pixel art scaling, context menus and memory growth across levels
- A reference on sprite sheets, Graphics, text, TilingSprite, ParticleContainer, filters and teardown
Common Use Cases
- Starting a PixiJS v8 game or playable ad
- Fixing a blank canvas, clicks that do nothing or a drag that stops at the sprite edge
- Loading screens of assets as bundles and unloading them between levels
- Porting PixiJS v7 code to v8
What Makes It Unique
The skill is written for PixiJS 8.22 and corrects v7 habits one by one, from the constructor to the Loader to beginFill. It states its scope up front: PixiJS has no scenes, physics or input mapping, and it points to Phaser for a game that wants those built in. Dashboards and charts are out of scope.
Under The Hood
The agent loads the SKILL.md and reads the assets and display reference when it works with sprite sheets, filters or teardown. It edits your game source, runs the build or type check, and writes a small smoke script. That script needs the Playwright package and a downloaded Chromium browser, which the agent installs only if you agree; it then opens your local dev server page in a headless browser and saves a screenshot file. It does not call outside services beyond that install.