@vpmedia/phaser 1.0.27 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/phaser.cjs +1 -1
- package/dist/phaser.cjs.LICENSE.txt +1 -1
- package/dist/phaser.cjs.map +1 -1
- package/dist/phaser.js +1 -1
- package/dist/phaser.js.LICENSE.txt +1 -1
- package/dist/phaser.js.map +1 -1
- package/package.json +1 -1
- package/src/phaser/core/loader.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vpmedia/phaser",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.28",
|
|
4
4
|
"description": "@vpmedia/phaser is the modern ECMAScript port of the popular Phaser game engine v2.6.2",
|
|
5
5
|
"author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -540,8 +540,9 @@ export default class {
|
|
|
540
540
|
console.warn('Missing loader pack key', pack.key);
|
|
541
541
|
return;
|
|
542
542
|
}
|
|
543
|
-
|
|
544
|
-
|
|
543
|
+
const packDataCompat = Array.isArray(packData) ? packData : packData.files;
|
|
544
|
+
for (let i = 0; i < packDataCompat.length; i += 1) {
|
|
545
|
+
const file = packDataCompat[i];
|
|
545
546
|
switch (file.type) {
|
|
546
547
|
case "image":
|
|
547
548
|
this.image(file.key, file.url, file.overwrite);
|