mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 19:43:28 +00:00
13 lines
436 B
JavaScript
13 lines
436 B
JavaScript
|
var RemoveTileAt = require('./RemoveTileAt');
|
||
|
var WorldToTileX = require('./WorldToTileX');
|
||
|
var WorldToTileY = require('./WorldToTileY');
|
||
|
|
||
|
var RemoveTileAtWorldXY = function (worldX, worldY, replaceWithNull, camera, layer)
|
||
|
{
|
||
|
var tileX = WorldToTileX(worldX, camera, layer);
|
||
|
var tileY = WorldToTileY(worldY, camera, layer);
|
||
|
return RemoveTileAt(tileX, tileY, replaceWithNull, layer);
|
||
|
};
|
||
|
|
||
|
module.exports = RemoveTileAtWorldXY;
|