mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
Updated jsdocs
This commit is contained in:
parent
715ee10367
commit
0f72a9781b
2 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue