mirror of
https://github.com/photonstorm/phaser
synced 2024-12-24 12:03:36 +00:00
12 lines
484 B
JavaScript
12 lines
484 B
JavaScript
var RemoveTileAt = require('./RemoveTileAt');
|
|
var WorldToTileX = require('./WorldToTileX');
|
|
var WorldToTileY = require('./WorldToTileY');
|
|
|
|
var RemoveTileAtWorldXY = function (worldX, worldY, replaceWithNull, recalculateFaces, camera, layer)
|
|
{
|
|
var tileX = WorldToTileX(worldX, true, camera, layer);
|
|
var tileY = WorldToTileY(worldY, true, camera, layer);
|
|
return RemoveTileAt(tileX, tileY, replaceWithNull, recalculateFaces, layer);
|
|
};
|
|
|
|
module.exports = RemoveTileAtWorldXY;
|