mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
Formatting fix #4992
This commit is contained in:
parent
a3f67973cd
commit
f03ddf033b
1 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,6 @@
|
||||||
* @license {@link https://opensource.org/licenses/MIT|MIT License}
|
* @license {@link https://opensource.org/licenses/MIT|MIT License}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
var GetTilesWithin = require('./GetTilesWithin');
|
var GetTilesWithin = require('./GetTilesWithin');
|
||||||
var ReplaceByIndex = require('./ReplaceByIndex');
|
var ReplaceByIndex = require('./ReplaceByIndex');
|
||||||
|
|
||||||
|
@ -50,9 +49,11 @@ var CreateFromTiles = function (indexes, replacements, spriteConfig, scene, came
|
||||||
|
|
||||||
if (indexes.indexOf(tile.index) !== -1)
|
if (indexes.indexOf(tile.index) !== -1)
|
||||||
{
|
{
|
||||||
var point = tilemapLayer.tileToWorldXY(tile.x,tile.y, undefined, camera,layer);
|
var point = tilemapLayer.tileToWorldXY(tile.x, tile.y, undefined, camera,layer);
|
||||||
|
|
||||||
spriteConfig.x = point.x;
|
spriteConfig.x = point.x;
|
||||||
spriteConfig.y = point.y;
|
spriteConfig.y = point.y;
|
||||||
|
|
||||||
sprites.push(scene.make.sprite(spriteConfig));
|
sprites.push(scene.make.sprite(spriteConfig));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue