Layer

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

Properties


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

Methods


Draw

draw() None

Draw the layer to the current renderer.