Tile

class Tile(x: int, y: int, sprite: pygame.Surface, sprite_path: str, blocks_movement: bool = False, height: HeightType = 1)[source]

Bases: object

A Tile on the GameMap.

__init__(x: int, y: int, sprite: pygame.Surface, sprite_path: str, blocks_movement: bool = False, height: HeightType = 1)[source]

Initialize self. See help(type(self)) for accurate signature.

classmethod deserialise(serialised: Dict[str, Any])[source]

Loads the details from the serialised data back into the Tile.

serialise()Dict[str, Any][source]

Serialise the Tile