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: CHANGELOG-v3.50.md
+13-5Lines changed: 13 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -403,17 +403,24 @@ The Animation API has had a significant overhaul to improve playback handling. I
403
403
404
404
### Tilemap - New Features, Updates and API Changes
405
405
406
-
The Tilemap system now supports isometric, hexagonal and staggered map types, along with the previous orthogonal format, thanks to a PR from @svipal.
406
+
There are two large changes to Tilemaps in 3.50. If you use tilemaps, you must read this section:
407
407
408
-
You can now export maps using any of these orientations from the Tiled Map Editor and load them into Phaser using the standard tilemap loading API.
408
+
1) The first change is that there are no longer `DynamicTilemapLayer` and `StaticTilemapLayer` classes. They have both been removed and replaced with the new `TilemapLayer` class. This new class consolidates features from both and provides a lot cleaner API experience, as well as speeding up internal logic.
409
409
410
-
The following are all of the new components and functions that made this possible:
410
+
In your game where you use `map.createDynamicLayer` or `map.createStaticLayer` replace it with `map.createLayer` instead.
411
411
412
+
2) The second change is that the Tilemap system now supports isometric, hexagonal and staggered isometric map types, along with the previous orthogonal format, thanks to a PR from @svipal. You can now export maps using any of these orientations from the Tiled Map Editor and load them into Phaser using the existing tilemap loading API. No further changes need to take place in the way your maps are loaded.
413
+
414
+
The following changes are related to the above features and updates:
415
+
416
+
* The `Tilemap.createDynamicLayer` method has been renamed to `createLayer`.
417
+
* The `Tilemap.createStaticLayer` method has been removed. Use `createLayer` instead.
418
+
* The `Tilemap.createBlankDynamicLayer` method has been renamed to `createBlankLayer`.
419
+
* The `Tilemap.convertLayerToStatic` method has been removed as it is no longer required.
420
+
* The `TilemapLayerWebGLRenderer` function will no longer iterate through the layer tilesets, drawing tiles from only that set. Instead all it does now is iterate directly through only the tiles. This allows it to take advantage of the new Multi Texturing pipeline and also draw multi-tileset isometric layers correctly.
412
421
*`Phaser.Types.Tilemaps.TilemapOrientationType` is a new type def that holds the 4 types of map orientation now supported.
413
422
* The `Tile.updatePixelXY` method now updates the tile XY position based on map type.
414
423
*`Tilemap.hexSideLength` is a new property that holds the length of the hexagon sides, if using Hexagonal Tilemaps.
415
-
*`DynamicTilemapLayer.isoCullDistances` is a new Vector2 property that allows you to control how far the tiles will still be rendered for, out of the camera bounds, before they are culled.
416
-
*`StaticTilemapLayer.isoCullDistances` is a new Vector2 property that allows you to control how far the tiles will still be rendered for, out of the camera bounds, before they are culled.
417
424
*`LayerData.orientation` is a new property that holds the tilemap layers orientation constant.
418
425
*`LayerData.hexSideLength` is a new property that holds the length of the hexagon sides, if using Hexagonal Tilemaps.
419
426
*`MapData.orientation` is a new property that holds the tilemap layers orientation constant.
@@ -443,6 +450,7 @@ The following are all of the new components and functions that made this possibl
443
450
*`Tilemaps.Components.StaggeredCullBounds` is a new function that calculates the cull bounds for a staggered map.
444
451
*`Tilemaps.Components.RunCull` is a new function that runs the culling process from the combined bounds and tilemap.
445
452
*`Tilemap._convert` is a new internal private hash of tilemap conversion functions used by the public API.
453
+
* The `Tilemap._isStaticCall` method has been removed and no Tilemap methods now check this, leading to faster execution.
446
454
447
455
### Mesh Game Object - New Features, Updates and API Changes
0 commit comments