Loading Assets
Phaser 4 Loader guide for queuing images, spritesheets, atlases, audio, JSON, tilemaps, and fonts in preload.
- CCM score
- 74 of 100
- skills.sh installs
- 1.2K
- GitHub stars
- 40.8K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the Loader plugin (
this.load), URL resolution via baseURL, path, and prefix, and global asset caches shared across Scenes - Includes loader methods for images, spritesheets, audio, JSON, Tiled and CSV tilemaps, atlases, bitmap fonts, video, web fonts, and pack files
- Documents load events
progress,complete, andloaderrorfor progress bars and error handling in Scenes - Designed for Phaser 4 developers who need to preload assets before
create()or load extra assets at runtime
Install
$ npx -y skills add phaserjs/phaser --skill loading-assets -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Loading Assets
The Phaser Loader (
this.load) handles fetching all external content: images, audio, JSON, tilemaps, atlases, fonts, scripts, and more. Assets are queued inpreload(), loaded in parallel, and placed into global caches accessible by every Scene.
Key source paths: src/loader/LoaderPlugin.js, src/loader/File.js, src/loader/filetypes/, src/loader/events/
Related skills: ../game-setup-and-config/SKILL.md, ../scenes/SKILL.md, ../sprites-and-images/SKILL.md
Quick Start
class GameScene extends Phaser.Scene {
preload() {
this.load.image('logo', 'assets/logo.png');
}
create() {
this.add.image(400, 300, 'logo');
}
}
Assets loaded in preload() are guaranteed to be ready when create() runs. The Loader starts automatically during the preload phase.
Core Concepts
The Preload Pattern
Every Scene can define a preload() method. The Loader automatically starts when preload() completes and waits for all queued files to finish before calling create().
Details
- Repository
- github.com/phaserjs/phaser
- Categories
- Game Development, Frontend & UI Code
- First seen
- Jun 3, 2026
Questions
What does the loading-assets skill do in Phaser 4?
The loading-assets skill covers the Phaser 4 Loader plugin, which fetches images, spritesheets, atlases, audio, JSON, tilemaps, bitmap fonts and other external content. It also explains how to track load progress with loader events for loading screens and progress bars.
How do I install the loading-assets skill?
Run npx -y skills add phaserjs/phaser --skill loading-assets -y in your project. After installing, the agent can queue assets in preload() and track load progress for you.
Which skills lead the Game Development category?
The loading-assets skill sits in the Game Development category on Claude Marketplaces, alongside higgsfield-game-generation, game-feel, game-ui-ux, godot-gdscript-patterns and level-design. It is focused on asset loading rather than game feel or interface design.
What triggers the loading-assets skill?
The skill triggers on terms such as preload, this.load, asset loading, spritesheet, atlas and load progress. Use these when you are writing Phaser 4 code that fetches external files.
More from phaserjs/phaser
All 8Similar to Loading Assets
More Game Developmenttilemapsphaserjs/phaser1.3K installsPhaser 4 tilemap guide covering Tiled JSON loading, layers, tile collision, and GPU-accelerated rendering.
audio-and-soundphaserjs/phaser1.3K installsPhaser 4 audio guide covering WebAudio and HTML5 backends, SoundManager, volume, looping, markers, and spatial audio.
pixijs-assetspixijs/pixijs-skills7.2K installsLoads and manages PixiJS v8 assets through init, bundles, manifests, background loading, and parser overrides.
preloadpatternsdev/skills1.8K installsGuide to browser resource preloading that prioritizes late-discovered critical assets like fonts, hero images, and scripts.
threejs-loaderscloudai-x/threejs-skills23.2K installsThree.js asset loading for glTF, textures, HDR environments, and progress tracking, with compression and caching guidance.
loading-sequencepatternsdev/skills1.8K installsGuidance for ordering resource discovery and loading to improve FCP, LCP, and FID scores.