# World.isCellInBounds

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

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
world:isCellInBounds( x, y )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/World.md#iscellinbounds)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `world` | [World](../Game-Script-Environment/Userdata/World.md) | 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. |
