Skip to content

Commit 5546e59

Browse files
committed
Tiled polylines are now imported into the map objects property as well as map collision (phaserjs#1117)
1 parent 0284d0b commit 5546e59

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ Version 2.1.0 - "Cairhien" - -in development-
121121
* The Pointer move callbacks are now sent an extra parameter: `fromClick` allowing your callbacks to distinguish between the Pointer just moving, or moving as a result of being pressed down (thanks @iforce2d #1055)
122122
* GamePad and SinglePad onAxisCallback parameters have changed. You are now sent: this (a reference to the SinglePad that caused the callback), the axis index and the axis value in that order.
123123
* If Time.elapsed was > Time.timeCap it would reset the elapsed value to be 1 / 60. It's now set to Time.timeCap and Time.timeCap defaults to `1 / 60 * 1000` as it's a ms value (thanks @casensiom #899)
124+
* Tiled polylines are now imported into the map objects property as well as map collision (#1117)
124125

125126
### Bug Fixes
126127

src/tilemap/TilemapParser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ Phaser.TilemapParser = {
408408
}
409409

410410
collision[json.layers[i].name].push(object);
411+
objects[json.layers[i].name].push(object);
411412
}
412413
// polygon
413414
else if (json.layers[i].objects[v].polygon)

0 commit comments

Comments
 (0)