Skip to content

Commit e62d8bb

Browse files
committed
Update CHANGELOG-v3.50.md
1 parent 3e2041a commit e62d8bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CHANGELOG-v3.50.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,15 +403,15 @@ The Animation API has had a significant overhaul to improve playback handling. I
403403

404404
### Tilemap - New Features, Updates and API Changes
405405

406-
There are two large changes to Tilemaps in 3.50. If you use tilemaps, you must read this section:
406+
There are three large changes to Tilemaps in 3.50. If you use tilemaps, you must read this section:
407407

408408
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.
409409

410410
In your game where you use `map.createDynamicLayer` or `map.createStaticLayer` replace it with `map.createLayer` instead.
411411

412412
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.
413413

414-
The following changes are related to the above features and updates:
414+
3) The `Tilemap.createFromObjects` method has been overhauled to make it much more useful. The method signature has changed and it now takes a new `CreateFromObjectLayerConfig` configuration object, or an array of them, which allows much more fine-grained control over which objects in the Tiled Object Layers are converted and what they are converted to. Previously it could only convert to Sprites, but you can now pass in a custom class, filter based on id, gid or name, even provide a Container to add the created Game Objects in to. Please see the new documentation for this method and the config object for more details. Fix #3817 #4613 (thanks @georgzoeller @Secretmapper)
415415

416416
* The `Tilemap.createDynamicLayer` method has been renamed to `createLayer`.
417417
* The `Tilemap.createStaticLayer` method has been removed. Use `createLayer` instead.

0 commit comments

Comments
 (0)