Phaser 3 Pack File Generator
WARNING
This is still a work in progress. Until complete, it will not write a file; however, you can pipe the output to a file.
This script generates a File Pack in JSON form according to the framework definition.
Features
Generates a Pack File based on organization of asset files, using a configuration file to shape output.
Usage
This script requires a configuration file following the following structure:
{
"extensions?": string
"targets": [
{
"hint"?: ["audio"|"image"|"bitmapFont"]
"key": string
"basePath": string
"extensions": string
},
{
}
]
}
For assets that are not automatically inferred, you'll probably want to take advantage of hint options.
Invocation:
npx @paxperscientiam/generate-phaser3-filepack <configfile.json>
Notes
This script does NOT write anything to file; it's up to you to do so.
Is you set a "hint", it's assumed accurate.
Auto inferred types
Hint-reliant types
Improvements
Bugs
Contributors
- All the programmers Copilot ripped off
- Fine folks at liberachat
- Phaser community