loading-assets

Automate asset loading and management in Phaser games.

3|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/Autinhorse/levelcraft --skill loading-assets-autinhorse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: loading-assets
Source: https://github.com/Autinhorse/levelcraft/tree/main/games/docs/phaser-skills/loading-assets
Command: npx skills add https://github.com/Autinhorse/levelcraft --skill loading-assets-autinhorse

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Managing the loading, organization, and implementation of game assets can be complex and error-prone, especially when handling multiple file types and dependencies.

Core Features & Use Cases

  • Efficient Asset Loading: Simplifies preloading images, audio, JSON, tilemaps, atlases, fonts, videos, and scripts with easy-to-use APIs.
  • Progress Tracking and Event Handling: Provides mechanisms to monitor load progress and handle load events for custom loading screens or error management.
  • Use Case: When developing a Phaser game, developers can predefine their asset requirements in the preload method and seamlessly transition to gameplay once assets are ready, ensuring smooth user experience.

Quick Start

Load image and sprite assets within a scene’s preload method, then create game objects in create() once loading completes.

Frequently Asked Questions about loading-assets

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

FAQPage Schema
How do I preload multiple game assets in Phaser without blocking the main thread?

You preload game assets by defining images, audio, JSON, and tilemaps within a scene's preload method, allowing Phaser to cache resources efficiently before transitioning to gameplay.

What is the best way to track asset loading progress for a custom loading screen in Phaser?

Track asset loading progress by monitoring load events provided by the asset loader, which supply continuous progress updates for rendering custom loading screens or managing errors.

Does this asset loading approach support complex file formats like tilemaps and sprite atlases?

Yes, the asset loading approach supports complex file formats including tilemaps, sprite atlases, fonts, and videos, handling their specific dependencies efficiently through versatile APIs.

How do I manage dependencies when loading multiple file types in a Phaser game?

Manage asset dependencies by utilizing configuration options during the preload phase, ensuring that multiple file types like scripts and atlases are cached and fully resolved before use.

Why does my Phaser game show missing textures during the preload phase?

Missing textures during preload often occur when asset paths are misconfigured; ensure all image and atlas files are correctly defined and that load events confirm successful resource caching.