mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 14:10:42 +00:00
Improve the warnings in addTilesetImage()
This commit is contained in:
parent
47d393ac29
commit
002fa6300a
1 changed files with 2 additions and 2 deletions
|
@ -400,7 +400,7 @@ var Tilemap = new Class({
|
||||||
|
|
||||||
if (!this.scene.sys.textures.exists(key))
|
if (!this.scene.sys.textures.exists(key))
|
||||||
{
|
{
|
||||||
console.warn('Invalid Tileset Image: ' + key);
|
console.warn('Texture key "%s" not found', key);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -410,7 +410,7 @@ var Tilemap = new Class({
|
||||||
|
|
||||||
if (index === null && this.format === Formats.TILED_JSON)
|
if (index === null && this.format === Formats.TILED_JSON)
|
||||||
{
|
{
|
||||||
console.warn('No data found for Tileset: ' + tilesetName);
|
console.warn('Tilemap has no tileset "%s". Its tilesets are %o', tilesetName, this.tilesets);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue