new Tile(x, y, isWall)
a class representing a single tile on the map
Parameters:
Name | Type | Default | Description |
---|---|---|---|
x |
number | the x cord of this tile |
|
y |
number | the y cord of this tile |
|
isWall |
boolean | true | is this tile a wall? |
Members
-
isWall
-
a variable for weather the tile is a wall or not
-
pos :RougeLikePoint
-
the position of the tile
-
tileId
-
the variable for tile id