1212* By default TilemapLayers have fixedToCamera set to `true`. Changing this will break Camera follow and scrolling behavior.
1313*
1414* @class Phaser.TilemapLayer
15- * @extends PIXI.Sprite
16- * @extends Phaser.Component.Core
17- * @extends Phaser.Component.Bounds
18- * @extends Phaser.Component.BringToTop
19- * @extends Phaser.Component.Destroy
20- * @extends Phaser.Component.FixedToCamera
21- * @extends Phaser.Component.InputEnabled
22- * @extends Phaser.Component.Reset
23- * @extends Phaser.Component.Smoothed
15+ * @extends Phaser.Sprite
2416* @constructor
2517* @param {Phaser.Game } game - Game reference to the currently running game.
2618* @param {Phaser.Tilemap } tilemap - The tilemap to which this layer belongs.
@@ -33,9 +25,7 @@ Phaser.TilemapLayer = function (game, tilemap, index, width, height) {
3325 width |= 0 ;
3426 height |= 0 ;
3527
36- PIXI . Sprite . call ( this , PIXI . TextureCache [ '__default' ] ) ;
37-
38- Phaser . Component . Core . init . call ( this , game , 0 , 0 , null , null ) ;
28+ Phaser . Sprite . call ( this , game , 0 , 0 ) ;
3929
4030 /**
4131 * The Tilemap to which this layer is bound.
@@ -266,19 +256,9 @@ Phaser.TilemapLayer = function (game, tilemap, index, width, height) {
266256
267257} ;
268258
269- Phaser . TilemapLayer . prototype = Object . create ( PIXI . Sprite . prototype ) ;
259+ Phaser . TilemapLayer . prototype = Object . create ( Phaser . Sprite . prototype ) ;
270260Phaser . TilemapLayer . prototype . constructor = Phaser . TilemapLayer ;
271261
272- Phaser . Component . Core . install . call ( Phaser . TilemapLayer . prototype , [
273- 'Bounds' ,
274- 'BringToTop' ,
275- 'Destroy' ,
276- 'FixedToCamera' ,
277- 'InputEnabled' ,
278- 'Reset' ,
279- 'Smoothed'
280- ] ) ;
281-
282262Phaser . TilemapLayer . prototype . preUpdateCore = Phaser . Component . Core . preUpdate ;
283263
284264/**
0 commit comments