mirror of
https://github.com/wassname/phaser.git
synced 2026-07-21 12:40:56 +08:00
Loader can now parse both JSON Hash and JSON Array formated texture atlas files.
This commit is contained in:
@@ -217,7 +217,7 @@ Phaser.Loader.prototype = {
|
||||
|
||||
},
|
||||
|
||||
atlasJSON: function (key, textureURL, atlasURL, atlasData) {
|
||||
atlasJSONArray: function (key, textureURL, atlasURL, atlasData) {
|
||||
if (typeof atlasURL === "undefined") { atlasURL = null; }
|
||||
if (typeof atlasData === "undefined") { atlasData = null; }
|
||||
this.atlas(key, textureURL, atlasURL, atlasData, Phaser.Loader.TEXTURE_ATLAS_JSON_ARRAY);
|
||||
|
||||
Reference in New Issue
Block a user