class

PointClickEngine::Graphics::Sprites::AnimationDef

Inherits Reference < Object

Animation definition for data-driven animations

Constructors

from_range(name : String, start_frame : Int32, end_frame : Int32, frame_duration : Float32, loop : Bool = true) : AnimationDef

Create from frame range

Source
new(name : String, frames : Array(Int32), frame_duration : Float32, loop : Bool = true)
Source

Instance methods

frame_duration
Source
frame_duration=(frame_duration : Float32)
Source
frames
Source
frames=(frames : Array(Int32))
Source
loop
Source
loop=(loop : Bool)
Source
name
Source
name=(name : String)
Source