Breakout::Block
Inherits SF::Drawable / Struct / Value / Object
Constructors
new(index : Int32, textures : Array(SF::Texture), size : SF::Vector2 | Tuple = SF::Vector2.new(0, 0))
Instance methods
destroyed
destroyed=(destroyed : Bool)
draw(target : SF::RenderTarget, states : SF::RenderStates)
Draw the object to a render target.
This is an abstract method that has to be implemented by the including class to define how the drawable should be drawn.
- target - Render target to draw to
- states - Current render states
element
element=(element : SF::RectangleShape)