Skip to content

Commit 268d206

Browse files
committed
Fix scene arg in createFromObjects()
1 parent 2d82eca commit 268d206

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/tilemaps/Tilemap.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ var Tilemap = new Class({
638638
config.x = obj.x;
639639
config.y = obj.y;
640640

641-
var sprite = this.scene.make.sprite(config);
641+
var sprite = scene.make.sprite(config);
642642

643643
sprite.name = obj.name;
644644

@@ -1175,7 +1175,7 @@ var Tilemap = new Class({
11751175
layer = this.getLayer(layer);
11761176

11771177
if (layer === null) { return null; }
1178-
1178+
11791179
return TilemapComponents.GetTileAtWorldXY(worldX, worldY, nonNull, camera, layer);
11801180
},
11811181

@@ -1547,7 +1547,7 @@ var Tilemap = new Class({
15471547

15481548
/**
15491549
* Removes the given TilemapLayer from this Tilemap without destroying it.
1550-
*
1550+
*
15511551
* If no layer specified, the map's current layer is used.
15521552
*
15531553
* @method Phaser.Tilemaps.Tilemap#removeLayer
@@ -1580,7 +1580,7 @@ var Tilemap = new Class({
15801580

15811581
/**
15821582
* Destroys the given TilemapLayer and removes it from this Tilemap.
1583-
*
1583+
*
15841584
* If no layer specified, the map's current layer is used.
15851585
*
15861586
* @method Phaser.Tilemaps.Tilemap#destroyLayer
@@ -1647,7 +1647,7 @@ var Tilemap = new Class({
16471647
/**
16481648
* Removes the given Tile, or an array of Tiles, from the layer to which they belong,
16491649
* and optionally recalculates the collision information.
1650-
*
1650+
*
16511651
* This cannot be applied to Tiles that belong to Static Tilemap Layers.
16521652
*
16531653
* @method Phaser.Tilemaps.Tilemap#removeTile
@@ -1775,7 +1775,7 @@ var Tilemap = new Class({
17751775

17761776
/**
17771777
* Draws a debug representation of all layers within this Tilemap to the given Graphics object.
1778-
*
1778+
*
17791779
* This is helpful when you want to get a quick idea of which of your tiles are colliding and which
17801780
* have interesting faces. The tiles are drawn starting at (0, 0) in the Graphics, allowing you to
17811781
* place the debug representation wherever you want on the screen.

0 commit comments

Comments
 (0)