class Dungeon::Animation

Defined in:

dungeon/animation.cr

Constant Summary

TINT_DEFAULT = LibRay::WHITE

Constructors

Instance Method Summary

Constructor Detail

def self.new(sprite : Sprite, row : Int32 = 0, frame_initial : Int32 = 0, fps : Int32 = 24, tint : LibRay::Color = TINT_DEFAULT, loop_infinitely : Bool = true) #

[View source]

Instance Method Detail

def done? #

[View source]
def draw(x, y) #

[View source]
def fps : Int32 #

[View source]
def fps=(fps : Int32) #

[View source]
def frame #

[View source]
def frame=(frame) #

[View source]
def frames : Int32 #

[View source]
def height : Int32 #

[View source]
def loop_infinitely=(loop_infinitely : Bool) #

[View source]
def loop_infinitely? : Bool #

[View source]
def restart #

[View source]
def rotation : Float32 #

[View source]
def rotation=(rotation : Float32) #

[View source]
def row : Int32 #

[View source]
def row=(row : Int32) #

[View source]
def sprite : Sprite #

[View source]
def tint : LibRay::Color #

[View source]
def tint=(tint : LibRay::Color) #

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

[View source]
def width : Int32 #

[View source]