World.isCellInBounds

Checks if the given cell coordinates are within the bounds of the world.

Kind: Function

Environments: Game

Game

world:isCellInBounds( x, y )

Open the full Game reference

Parameters:

Name Type Description
world World The world.
x integer The X coordinate of the cell.
y integer The Y coordinate of the cell.

Returns:

Type Description
boolean True if the cell is within the bounds of the world, false otherwise.