Skip to content

Commit 4004cc9

Browse files
committed
First working pass at the Asset Pack Loader update.
1 parent 7de7785 commit 4004cc9

3 files changed

Lines changed: 356 additions & 113 deletions

File tree

resources/Asset Pack JSON Format/assetPack.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
},
4444
{
4545
"type": "audio",
46-
"key": "soundFX",
47-
"urls": [ "assets/audio/fx.mp3", "assets/audio/fx.ogg" ],
46+
"key": "boden",
47+
"urls": ["assets/audio/bodenstaendig_2000_in_rock_4bit.mp3", "assets/audio/bodenstaendig_2000_in_rock_4bit.ogg"],
4848
"autoDecode": true
4949
},
5050
{

src/core/StateManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ Phaser.StateManager.prototype = {
338338
this.onPreloadCallback.call(this.callbackContext, this.game);
339339

340340
// Is the loader empty?
341-
if (this.game.load.totalQueuedFiles() === 0)
341+
if (this.game.load.totalQueuedFiles() === 0 && this.game.load.totalQueuedPacks() === 0)
342342
{
343343
this.loadComplete();
344344
}

0 commit comments

Comments
 (0)