Hi everyone.
I can’t find real world examples for loading nested pack files.
Basic example
{
"desktop": {
"path": "./src/assets/images",
"files": [{
"type": "image",
"key": "gamescene_background",
"url": "maingame_screen.png"
}]
},
"meta": {
"generated": "1401380327373",
"app": "Phaser 3 Asset Packer",
"url": "https://phaser.io",
"version": "1.0",
"copyright": "Photon Storm Ltd. 2018"
}
}
Then I need to add one more level
{
"desktop": {
"regular": {
"path": "./src/assets/images",
"files": [{
"type": "image",
"key": "gamescene_background",
"url": "maingame_screen.png"
}]
},
"vip": {
"path": "./src/assets/images",
"files": [{
"type": "image",
"key": "gamescene_background",
"url": "maingame_screen.png"
}]
}
},
"meta": {
"generated": "1401380327373",
"app": "Phaser 3 Asset Packer",
"url": "https://phaser.io",
"version": "1.0",
"copyright": "Photon Storm Ltd. 2018"
}
}
...
this.load.pack('pack', './src/configs/pack.json', 'desktop.regular');
And it doesn’t work. What am I doing wrong?