class Breakout::Game

Included Modules

Defined in:

breakout/game.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

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 game_over #

[View source]
def reset_player #

[View source]
def running : Bool #

[View source]
def start #

[View source]
def update(elapsed : SF::Time) #

[View source]