Updated jsdocs

This commit is contained in:
Richard Davey 2023-04-03 18:35:25 +01:00
parent 715ee10367
commit 0f72a9781b
2 changed files with 6 additions and 2 deletions

View file

@ -87,6 +87,10 @@ var Tileset = require('./Tileset');
* child called 'Layer 1'. In the Tilemap object, 'Layer 1' will have the name
* 'ParentGroup/Layer 1'.
*
* The Phaser Tiled Parser does **not** support the 'Collection of Images' feature for a Tileset.
* You must ensure all of your tiles are contained in a single tileset image file (per layer)
* and have this 'embedded' in the exported Tiled JSON map data.
*
* @class Tilemap
* @memberof Phaser.Tilemaps
* @constructor
@ -426,7 +430,7 @@ var Tilemap = new Class({
if (tileMargin === undefined) { tileMargin = 0; }
if (tileSpacing === undefined) { tileSpacing = 0; }
if (gid === undefined) { gid = 0; }
if (tileOffset === undefined) { tileOffset = {x: 0, y: 0} }
if (tileOffset === undefined) { tileOffset = { x: 0, y: 0 }; }
tileset = new Tileset(tilesetName, gid, tileWidth, tileHeight, tileMargin, tileSpacing, undefined, undefined, tileOffset);

View file

@ -9,7 +9,7 @@ var Vector2 = require('../math/Vector2');
/**
* @classdesc
* A Tileset is a combination of an image containing the tiles and a container for data about
* A Tileset is a combination of a single image containing the tiles and a container for data about
* each tile.
*
* @class Tileset