mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 19:43:28 +00:00
7 lines
179 B
JavaScript
7 lines
179 B
JavaScript
|
var IsInLayerBounds = function (tileX, tileY, layer)
|
||
|
{
|
||
|
return (tileX >= 0 && tileX < layer.width && tileY >= 0 && tileY < layer.height);
|
||
|
};
|
||
|
|
||
|
module.exports = IsInLayerBounds;
|