mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-16 02:23:15 +00:00
13 lines
489 B
GDScript
13 lines
489 B
GDScript
class_name Frame
|
|
extends RefCounted
|
|
## A class for frame properties.
|
|
## A frame is a collection of cels, for each layer.
|
|
|
|
var cels: Array[BaseCel] ## The array containing all of the frame's [BaseCel]s. One for each layer.
|
|
var duration := 1.0 ## The duration multiplier. This allows for individual frame timing.
|
|
var user_data := "" ## User defined data, set in the frame properties.
|
|
|
|
|
|
func _init(_cels: Array[BaseCel] = [], _duration := 1.0) -> void:
|
|
cels = _cels
|
|
duration = _duration
|