class Works::Animation

Defined in:

works/animation.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(fps_factor : Int32 = 60, loops : Bool = true, center : Bool = false) #

[View source]

Instance Method Detail

def add(sheet : LibAllegro::Bitmap, x, y, width, height) #

[View source]
def center? : Bool #

[View source]
def destroy #

[View source]
def display_frame #

[View source]
def done? #

[View source]
def draw(x, y, flip_horizontal = false, flip_vertical = false) #

[View source]
def draw_rotated(x, y, angle = 0.0, flip_horizontal = false, flip_vertical = false) #

[View source]
def fps_factor : Int32 #

[View source]
def frame : Int32 #

[View source]
def height : Int32 #

[View source]
def loops? : Bool #

[View source]
def pause #

[View source]
def paused? : Bool #

[View source]
def restart #

[View source]
def sprites : Array(LibAllegro::Bitmap) #

[View source]
def total_frames #

[View source]
def update #

[View source]
def width : Int32 #

[View source]