class PF::Animation

Defined in:

animation.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(sheet : String, width : Int32, height : Int32, fps : Float64) #

[View source]

Instance Method Detail

def current_frame #

[View source]
def draw_to(sprite : Sprite, x : Int, y : Int) #

[View source]
def draw_to(sprite : Sprite, pos : Vector2(Int)) #

[View source]
def frame #

[View source]
def height : Int32 #

[View source]
def size #

[View source]
def update(dt : Float64) #

[View source]
def width : Int32 #

[View source]