struct Breakout::Block

Included Modules

Defined in:

breakout/block.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(index : Int32, textures : Array(SF::Texture), size : SF::Vector2 | Tuple = SF::Vector2.new(0, 0)) #

[View source]

Instance Method Detail

def destroyed : Bool #

[View source]
def destroyed=(destroyed : Bool) #

[View source]
def draw(target : SF::RenderTarget, states : SF::RenderStates) #
Description copied from module SF::Drawable

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

[View source]
def element : SF::RectangleShape #

[View source]
def element=(element : SF::RectangleShape) #

[View source]