pixijs-assets

Load and resolve PixiJS v8 assets by URL or descriptor with caching and GPU cleanup.

Updated Mar 13, 2022
One-click install
npx skills add https://github.com/alexkafer/alexkafer-web --skill pixijs-assets-alexkafer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pixijs-assets
Source: https://github.com/alexkafer/alexkafer-web/tree/main/.agents/skills/pixijs-assets
Command: npx skills add https://github.com/alexkafer/alexkafer-web --skill pixijs-assets-alexkafer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill removes the friction of figuring out how to load, resolve formats, group assets, and prevent memory leaks when building PixiJS v8 experiences.

Core Features & Use Cases

  • Unified asset loading & caching: Load textures, spritesheets, video textures, fonts, JSON, and more through PixiJS Assets, then retrieve them safely via cache.
  • Bundles, manifests, and background loading: Organize assets per level/feature and reduce load-time disruption using loadBundle, Assets.init({ manifest }), and background priming.
  • Format, resolution, and parser control: Use resolution/format patterns for retina and browser support, plus the parser field to force loaders for extension-less URLs.

Example use case: You need to load a game level with a texture atlas, bitmap font, and an intro video while showing a loading bar—then unload the whole level cleanly when switching scenes.

Quick Start

Ask the skill to initialize PixiJS asset resolution and base path, load a texture by URL, and add it to the scene.

Frequently Asked Questions about pixijs-assets

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I load and cache PixiJS v8 textures efficiently?

Use Assets.init with a manifest to organize textures, spritesheets, and fonts into bundles, then call loadBundle to fetch specific groups. This prevents memory leaks by enabling clean unloading of entire scene assets when switching levels.

Can I force a specific parser for extension-less URLs in PixiJS?

Yes, you can force a specific parser for extension-less URLs in PixiJS by passing the parser field within LoadOptions, overriding the default format detection to apply specialized loaders for ambiguous asset links.

What is the best way to manage GPU memory when unloading PixiJS assets?

Manage GPU memory when unloading PixiJS assets by using bundle-based loading and unloading through Assets, which ensures proper GPU cleanup of textures, spritesheets, and video textures when switching scenes or levels.

Does PixiJS support background preloading and progress reporting for asset bundles?

Yes, PixiJS supports background preloading and progress reporting for asset bundles through Assets.init and loadBundle, allowing you to prime assets in the background while displaying accurate load progress during scene transitions.

How do I handle retina resolution selection when loading PixiJS spritesheets?

Handle retina resolution selection when loading PixiJS spritesheets by defining resolution and format patterns in your asset descriptors, allowing the loader to automatically select the correct resolution based on the device pixel ratio.