An asset manifest is a JSON file that describes the assets that will be used in your game. Dill Pixel uses Pixi’s AssetPack to manage assets. You can define the location your asset manifest should go in your vite.config.ts file - by default it will be generated in the public/assets.json file, and auto-loaded during bootstrap.
Required Assets
Your application can define required assets that will be loaded before any scenes are initialized. These can be configured in your application options:
You can listen for application-level asset loading events:
Scenes can define their assets using the assets export, which also supports both preloaded and background-loaded assets:
Asset Loading Events
You can listen for background asset loading events in your scene: