class GSF::Animations
- GSF::Animations
- Reference
- Object
Defined in:
gsf/animations.crConstructors
- .new(name : Symbol, animation : Animation, flip_horizontal = false, flip_vertical = false)
- .new(name : Symbol)
Instance Method Summary
- #add(name : Symbol, animation : Animation, flip_horizontal = false, flip_vertical = false)
- #animation
- #animation_data
- #done?(*args, **options)
- #done?(*args, **options, &)
- #draw(window, x, y, color : SF::Color | Nil = nil, rotation = 0)
- #global_bounds(*args, **options)
- #global_bounds(*args, **options, &)
- #name : Symbol
- #pause(*args, **options)
- #pause(*args, **options, &)
-
#pause_after_done
NOTE is not working when looping is enabled, needs a fix for that
- #play(name : Symbol)
- #play(*args, **options)
- #play(*args, **options, &)
- #update(frame_time : Float32)
Constructor Detail
def self.new(name : Symbol, animation : Animation, flip_horizontal = false, flip_vertical = false)
#