mirror of
https://github.com/photonstorm/phaser
synced 2025-01-11 12:48:50 +00:00
6 lines
179 B
JavaScript
6 lines
179 B
JavaScript
var IsInLayerBounds = function (tileX, tileY, layer)
|
|
{
|
|
return (tileX >= 0 && tileX < layer.width && tileY >= 0 && tileY < layer.height);
|
|
};
|
|
|
|
module.exports = IsInLayerBounds;
|