Skip to content

Commit 5fb1130

Browse files
committed
The LoadTexture component has had a redundant dirty call removed from it.
TileSprites were missing a `physicsType` property, causing them to not collide with anything (thanks @numbofathma phaserjs#1702)
1 parent 57474c0 commit 5fb1130

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ Version 2.3.1 - "Katar" - in dev
248248

249249
### Bug Fixes
250250

251+
* The LoadTexture component has had a redundant `dirty` call removed from it.
252+
* TileSprites were missing a `physicsType` property, causing them to not collide with anything (thanks @numbofathma #1702)
251253

252254
For changes in previous releases please see the extensive [Version History](https://github.com/photonstorm/phaser/blob/master/CHANGELOG.md).
253255

src/gameobjects/TileSprite.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ Phaser.TileSprite = function (game, x, y, width, height, key, frame) {
4848
*/
4949
this.type = Phaser.TILESPRITE;
5050

51+
/**
52+
* @property {number} physicsType - The const physics body type of this object.
53+
* @readonly
54+
*/
55+
this.physicsType = Phaser.SPRITE;
56+
5157
/**
5258
* @property {Phaser.Point} _scroll - Internal cache var.
5359
* @private

0 commit comments

Comments
 (0)