loading-assets

Load and manage external assets in Phaser 4 games using the Loader plugin.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/Raphe-dev/phaser-cozy-mmo --skill loading-assets
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: loading-assets
Source: https://github.com/Raphe-dev/phaser-cozy-mmo/tree/main/skills/loading-assets
Command: npx skills add https://github.com/Raphe-dev/phaser-cozy-mmo --skill loading-assets

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Loading assets reliably in Phaser 4 is essential to avoid missing textures, audio, and data during game startup and runtime.

Core Features & Use Cases

  • Comprehensive asset loading: images, spritesheets, atlases, audio, JSON, tilemaps, bitmap fonts, and more, all queued in preload and cached globally for cross-scene access.
  • Progress tracking and events: monitor load progress with per-file events to drive loading screens and handle errors gracefully.
  • Flexible configuration: supports baseURL/path/prefix customization, file-type options, and runtime loading scenarios.

Quick Start

Queue assets in preload() using this.load.* methods to ensure they are ready when create() runs.

Frequently Asked Questions about loading-assets

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

FAQPage Schema
How do I preload images, spritesheets, and audio in Phaser 4?

Phaser 4 asset loading is managed by the Loader plugin, which queues external files like images, audio, and JSON during the preload phase to ensure assets are cached and ready before the create phase runs.

How do I track loading progress for a custom loading screen in Phaser?

You can track loading progress in Phaser by monitoring per-file load events from the Loader plugin, allowing you to drive custom loading screens and handle file loading errors gracefully during the preload phase.

Can I load tilemaps and bitmap fonts at runtime in Phaser 4?

Yes, Phaser 4 supports loading tilemaps and bitmap fonts both during initial preload and through runtime loading scenarios, queueing them effectively to ensure assets are available when needed.

How do I configure baseURL and file paths for Phaser asset loading?

Phaser asset loading supports flexible configuration through baseURL, path, and prefix customization, allowing you to define specific file-type options and organize external asset directories efficiently.

Why are my Phaser game textures missing when accessing them across scenes?

Missing textures across Phaser scenes occur when assets are not properly loaded into the global cache; using the Loader plugin in preload ensures cross-scene asset access for all loaded files.

Does Phaser 4 support spritesheet and atlas loading for game animations?

Yes, Phaser 4 supports comprehensive spritesheet and atlas loading through the Loader plugin, queueing these animation assets in preload to ensure they are globally cached and ready for runtime access.