Skip to content

Commit 6259551

Browse files
committed
Updated docs
1 parent 5c45b47 commit 6259551

2 files changed

Lines changed: 16 additions & 24 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@
9090
* Changing the mute flag on an `HTML5AudioSound` instance, via the `mute` setter, now works, as it does via the Sound Manager (thanks @Waclaw-I @neon-dev)
9191
* Changing the volume on an `HTML5AudioSound` instance, via the `volume` setter, now works, as it does via the Sound Manager (thanks @Waclaw-I)
9292
* The Dynamic Tilemap Layer WebGL renderer was drawing tiles at the incorrect position if the layer was scaled. Fix #4104 (thanks @the-realest-stu)
93+
* `Tile.tileset` now returns the specific Tileset associated with the tile, rather than an array of them. Fix #4095 (thanks @quadrupleslap)
94+
* `Tile.getCollisionGroup` wouldn't return the correct Group after the change to support multiple Tilesets. It now returns the group properly (thanks @jbpuryear)
95+
* `Tile.getTileData` wouldn't return the correct data after the change to support multiple Tilesets. It now returns the tile data properly (thanks @jbpuryear)
96+
* The `GetTileAt` and `RemoveTileAt` components would error with "Cannot read property 'index' of undefined" if the tile was undefined rather than null. It now handles both cases (thanks @WaSa42)
9397

9498
### Examples and TypeScript
9599

src/tilemaps/dynamiclayer/DynamicTilemapLayer.js

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -976,10 +976,8 @@ var DynamicTilemapLayer = new Class({
976976
* @since 3.0.0
977977
*
978978
* @param {(integer|array)} indexes - Either a single tile index, or an array of tile indexes.
979-
* @param {boolean} [collides=true] - If true it will enable collision. If false it will clear
980-
* collision.
981-
* @param {boolean} [recalculateFaces=true] - Whether or not to recalculate the tile faces after the
982-
* update.
979+
* @param {boolean} [collides=true] - If true it will enable collision. If false it will clear collision.
980+
* @param {boolean} [recalculateFaces=true] - Whether or not to recalculate the tile faces after the update.
983981
*
984982
* @return {Phaser.Tilemaps.DynamicTilemapLayer} This Tilemap Layer object.
985983
*/
@@ -1001,10 +999,8 @@ var DynamicTilemapLayer = new Class({
1001999
*
10021000
* @param {integer} start - The first index of the tile to be set for collision.
10031001
* @param {integer} stop - The last index of the tile to be set for collision.
1004-
* @param {boolean} [collides=true] - If true it will enable collision. If false it will clear
1005-
* collision.
1006-
* @param {boolean} [recalculateFaces=true] - Whether or not to recalculate the tile faces after the
1007-
* update.
1002+
* @param {boolean} [collides=true] - If true it will enable collision. If false it will clear collision.
1003+
* @param {boolean} [recalculateFaces=true] - Whether or not to recalculate the tile faces after the update.
10081004
*
10091005
* @return {Phaser.Tilemaps.DynamicTilemapLayer} This Tilemap Layer object.
10101006
*/
@@ -1027,12 +1023,9 @@ var DynamicTilemapLayer = new Class({
10271023
* @method Phaser.Tilemaps.DynamicTilemapLayer#setCollisionByProperty
10281024
* @since 3.0.0
10291025
*
1030-
* @param {object} properties - An object with tile properties and corresponding values that should
1031-
* be checked.
1032-
* @param {boolean} [collides=true] - If true it will enable collision. If false it will clear
1033-
* collision.
1034-
* @param {boolean} [recalculateFaces=true] - Whether or not to recalculate the tile faces after the
1035-
* update.
1026+
* @param {object} properties - An object with tile properties and corresponding values that should be checked.
1027+
* @param {boolean} [collides=true] - If true it will enable collision. If false it will clear collision.
1028+
* @param {boolean} [recalculateFaces=true] - Whether or not to recalculate the tile faces after the update.
10361029
*
10371030
* @return {Phaser.Tilemaps.DynamicTilemapLayer} This Tilemap Layer object.
10381031
*/
@@ -1052,10 +1045,8 @@ var DynamicTilemapLayer = new Class({
10521045
* @since 3.0.0
10531046
*
10541047
* @param {integer[]} indexes - An array of the tile indexes to not be counted for collision.
1055-
* @param {boolean} [collides=true] - If true it will enable collision. If false it will clear
1056-
* collision.
1057-
* @param {boolean} [recalculateFaces=true] - Whether or not to recalculate the tile faces after the
1058-
* update.
1048+
* @param {boolean} [collides=true] - If true it will enable collision. If false it will clear collision.
1049+
* @param {boolean} [recalculateFaces=true] - Whether or not to recalculate the tile faces after the update.
10591050
*
10601051
* @return {Phaser.Tilemaps.DynamicTilemapLayer} This Tilemap Layer object.
10611052
*/
@@ -1075,10 +1066,8 @@ var DynamicTilemapLayer = new Class({
10751066
* @method Phaser.Tilemaps.DynamicTilemapLayer#setCollisionFromCollisionGroup
10761067
* @since 3.0.0
10771068
*
1078-
* @param {boolean} [collides=true] - If true it will enable collision. If false it will clear
1079-
* collision.
1080-
* @param {boolean} [recalculateFaces=true] - Whether or not to recalculate the tile faces after the
1081-
* update.
1069+
* @param {boolean} [collides=true] - If true it will enable collision. If false it will clear collision.
1070+
* @param {boolean} [recalculateFaces=true] - Whether or not to recalculate the tile faces after the update.
10821071
*
10831072
* @return {Phaser.Tilemaps.DynamicTilemapLayer} This Tilemap Layer object.
10841073
*/
@@ -1098,8 +1087,7 @@ var DynamicTilemapLayer = new Class({
10981087
* @method Phaser.Tilemaps.DynamicTilemapLayer#setTileIndexCallback
10991088
* @since 3.0.0
11001089
*
1101-
* @param {(integer|array)} indexes - Either a single tile index, or an array of tile indexes to have a
1102-
* collision callback set for.
1090+
* @param {(integer|array)} indexes - Either a single tile index, or an array of tile indexes to have a collision callback set for.
11031091
* @param {function} callback - The callback that will be invoked when the tile is collided with.
11041092
* @param {object} callbackContext - The context under which the callback is called.
11051093
*

0 commit comments

Comments
 (0)