Layer

Layer is the base class for all tilemap layers. Access via the 'tilemap' submodule.

Properties


NameDescriptionType
visibleWhether the layer is visible.bool
offsetPer-layer drawing offset.Vec2
opacityLayer opacity from 0.0 to 1.0.float
nameLayer name.str
typeLayer type enum.LayerType

Methods


Draw

draw() None

Draw the layer to the current renderer.