class GSF::Animations

Defined in:

gsf/animations.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : Symbol, animation : Animation, flip_horizontal = false, flip_vertical = false) #

[View source]
def self.new(name : Symbol) #

[View source]

Instance Method Detail

def add(name : Symbol, animation : Animation, flip_horizontal = false, flip_vertical = false) #

[View source]
def animation #

[View source]
def animation_data #

[View source]
def done?(*args, **options) #

[View source]
def done?(*args, **options, &) #

[View source]
def draw(window, x, y, color : SF::Color | Nil = nil, rotation = 0) #

[View source]
def global_bounds(*args, **options) #

[View source]
def global_bounds(*args, **options, &) #

[View source]
def name : Symbol #

[View source]
def pause(*args, **options) #

[View source]
def pause(*args, **options, &) #

[View source]
def pause_after_done #

NOTE is not working when looping is enabled, needs a fix for that


[View source]
def play(name : Symbol) #

[View source]
def play(*args, **options) #

[View source]
def play(*args, **options, &) #

[View source]
def update(frame_time : Float32) #

[View source]