class Dungeon::Animation
- Dungeon::Animation
- Reference
- Object
Defined in:
dungeon/animation.crConstant Summary
-
TINT_DEFAULT =
LibRay::WHITE
Constructors
Instance Method Summary
- #done?
- #draw(x, y)
- #fps : Int32
- #fps=(fps : Int32)
- #frame
- #frame=(frame)
- #frames : Int32
- #height : Int32
- #loop_infinitely=(loop_infinitely : Bool)
- #loop_infinitely? : Bool
- #restart
- #rotation : Float32
- #rotation=(rotation : Float32)
- #row : Int32
- #row=(row : Int32)
- #sprite : Sprite
- #tint : LibRay::Color
- #tint=(tint : LibRay::Color)
- #update(delta_t : Float32)
- #width : Int32
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)
#