You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,7 @@ Bug Fixes
96
96
* The volume given in Sound.play now over-rides that set in Sound.addMarker if specified (fix #623)
97
97
* BitmapDatas when used as Game Object textures in WebGL now update themselves properly.
98
98
* Timer.ms now correctly reports the ms time even if the Timer has been paused (thanks Nambew, fix #624)
99
+
* If you added a Tileset to an empty map it would eventually throw an out of memory error.
99
100
100
101
101
102
Updated
@@ -124,6 +125,7 @@ Updated
124
125
* ArcadePhysics.Body.setSize corrected to take the parameters as positive, not negative values.
125
126
* ArcadePhysics.World.seperate will now check gravity totals to determine separation order. You can set World.forceX to true to always separate on X first and skip this check.
126
127
* TileSprites now emit outOfBounds and enterBounds events accordingly.
128
+
* You can now create multiple blank layers in a Tilemap.
Copy file name to clipboardExpand all lines: src/tilemap/Tilemap.js
+31-3Lines changed: 31 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -215,8 +215,8 @@ Phaser.Tilemap.prototype = {
215
215
* @method Phaser.Tilemap#addTilesetImage
216
216
* @param {string} tileset - The name of the tileset as specified in the map data.
217
217
* @param {string} [key] - The key of the Phaser.Cache image used for this tileset. If not specified it will look for an image with a key matching the tileset parameter.
218
-
* @param {number} [tileWidth] - The width of the tiles in the Tileset Image. If not given it will default to the map.tileWidth value.
219
-
* @param {number} [tileHeight] - The height of the tiles in the Tileset Image. If not given it will default to the map.tileHeight value.
218
+
* @param {number} [tileWidth=32] - The width of the tiles in the Tileset Image. If not given it will default to the map.tileWidth value, if that isn't set then 32.
219
+
* @param {number} [tileHeight=32] - The height of the tiles in the Tileset Image. If not given it will default to the map.tileHeight value, if that isn't set then 32.
220
220
* @param {number} [tileMargin=0] - The width of the tiles in the Tileset Image. If not given it will default to the map.tileWidth value.
221
221
* @param {number} [tileSpacing=0] - The height of the tiles in the Tileset Image. If not given it will default to the map.tileHeight value.
222
222
* @param {number} [gid=0] - If adding multiple tilesets to a blank/dynamic map, specify the starting GID the set will use here.
* Creates a new TilemapLayer object. By default TilemapLayers are fixed to the camera.
371
382
* The `layer` parameter is important. If you've created your map in Tiled then you can get this by looking in Tiled and looking at the Layer name.
372
383
* Or you can open the JSON file it exports and look at the layers[].name value. Either way it must match.
384
+
* If you wish to create a blank layer to put your own tiles on then see Tilemap.createBlankLayer.
373
385
*
374
386
* @method Phaser.Tilemap#createLayer
375
387
* @param {number|string} layer - The layer array index value, or if a string is given the layer name, within the map data that this TilemapLayer represents.
Copy file name to clipboardExpand all lines: src/tilemap/Tileset.js
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,19 @@
12
12
* @constructor
13
13
* @param {string} name - The name of the tileset in the map data.
14
14
* @param {number} firstgid - The Tiled firstgid value. In non-Tiled data this should be considered the starting index value of the first tile in this set.
15
-
* @param {number} width - Width of each tile in pixels.
16
-
* @param {number} height - Height of each tile in pixels.
17
-
* @param {number} margin - The amount of margin around the tilesheet.
18
-
* @param {number} spacing - The amount of spacing between each tile in the sheet.
Copy file name to clipboardExpand all lines: src/tween/Tween.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -199,7 +199,7 @@ Phaser.Tween.prototype = {
199
199
* @param {function} [ease=null] - Easing function. If not set it will default to Phaser.Easing.Linear.None.
200
200
* @param {boolean} [autoStart=false] - Whether this tween will start automatically or not.
201
201
* @param {number} [delay=0] - Delay before this tween will start, defaults to 0 (no delay). Value given is in ms.
202
-
* @param {boolean} [repeat=0] - Should the tween automatically restart once complete? (ignores any chained tweens).
202
+
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as Number.MAX_VALUE. This ignores any chained tweens.
203
203
* @param {boolean} [yoyo=false] - A tween that yoyos will reverse itself when it completes.
0 commit comments