Interface: AnimationFrame
Defined in: animations/types/AnimationFrame.ts:6
Interface representing a single frame of an animation.
Properties
durationSeconds
durationSeconds:
number
Defined in: animations/types/AnimationFrame.ts:20
The duration of the frame in seconds.
frameIndex
frameIndex:
number
Defined in: animations/types/AnimationFrame.ts:24
The index of the frame in the animation sequence.
offset
offset:
Vector2
Defined in: animations/types/AnimationFrame.ts:11
The offset of the frame in the sprite sheet, scaled from 0 to 1. This is a percentage of the total sprite sheet dimensions.
scale
scale:
Vector2
Defined in: animations/types/AnimationFrame.ts:16
The scale of the frame, which determines how it is rendered, scaled from 0 to 1. This is a percentage of the total sprite sheet dimensions.