Skip to content

Commit dbd696e

Browse files
photonstormclark-stevenson
authored andcommitted
Sprite was missing the Health and InCamera components.
1 parent bd9380c commit dbd696e

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ Version 2.3.1 - "Katar" - in dev
250250

251251
* The LoadTexture component has had a redundant `dirty` call removed from it.
252252
* TileSprites were missing a `physicsType` property, causing them to not collide with anything (thanks @numbofathma #1702)
253+
* Sprite was missing the Health and InCamera components.
253254

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

src/gameobjects/Sprite.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
* @extends Phaser.Component.Delta
2525
* @extends Phaser.Component.Destroy
2626
* @extends Phaser.Component.FixedToCamera
27+
* @extends Phaser.Component.Health
28+
* @extends Phaser.Component.InCamera
2729
* @extends Phaser.Component.InputEnabled
2830
* @extends Phaser.Component.InWorld
2931
* @extends Phaser.Component.LifeSpan
@@ -77,6 +79,8 @@ Phaser.Component.Core.install.call(Phaser.Sprite.prototype, [
7779
'Delta',
7880
'Destroy',
7981
'FixedToCamera',
82+
'Health',
83+
'InCamera',
8084
'InputEnabled',
8185
'InWorld',
8286
'LifeSpan',

src/gameobjects/TileSprite.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@
1616
* @extends Phaser.Component.Animation
1717
* @extends Phaser.Component.AutoCull
1818
* @extends Phaser.Component.Bounds
19+
* @extends Phaser.Component.BringToTop
1920
* @extends Phaser.Component.Destroy
2021
* @extends Phaser.Component.FixedToCamera
22+
* @extends Phaser.Component.Health
23+
* @extends Phaser.Component.InCamera
2124
* @extends Phaser.Component.InputEnabled
2225
* @extends Phaser.Component.InWorld
26+
* @extends Phaser.Component.LifeSpan
2327
* @extends Phaser.Component.LoadTexture
2428
* @extends Phaser.Component.Overlap
2529
* @extends Phaser.Component.PhysicsBody
@@ -74,10 +78,14 @@ Phaser.Component.Core.install.call(Phaser.TileSprite.prototype, [
7478
'Animation',
7579
'AutoCull',
7680
'Bounds',
81+
'BringToTop',
7782
'Destroy',
7883
'FixedToCamera',
84+
'Health',
85+
'InCamera',
7986
'InputEnabled',
8087
'InWorld',
88+
'LifeSpan',
8189
'LoadTexture',
8290
'Overlap',
8391
'PhysicsBody',

0 commit comments

Comments
 (0)