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