mirror of
https://github.com/photonstorm/phaser
synced 2025-01-12 21:28:53 +00:00
32 lines
965 B
JSON
32 lines
965 B
JSON
{
|
|
frames: [
|
|
{ key: textureKey, frame: textureFrame },
|
|
{ key: textureKey, frame: textureFrame, duration: float },
|
|
{ key: textureKey, frame: textureFrame, visible: boolean },
|
|
{ key: textureKey, frame: textureFrame, onUpdate: function }
|
|
],
|
|
frameRate: integer,
|
|
duration: float (seconds, optional, ignored if frameRate is set),
|
|
skipMissedFrames: boolean,
|
|
delay: integer,
|
|
repeat: integer (-1 = forever),
|
|
repeatDelay: integer,
|
|
yoyo: boolean,
|
|
showOnStart: boolean,
|
|
hideOnComplete: boolean,
|
|
callbackScope: Object,
|
|
onStart: function,
|
|
onStartParams: array,
|
|
onRepeat: function,
|
|
onRepeatParams: array,
|
|
onUpdate: function,
|
|
onUpdateParams: array,
|
|
onComplete: function,
|
|
onCompleteParams: array,
|
|
transitions: [
|
|
{
|
|
key: string <- key of the animation to blend with,
|
|
frames: [] <- play these frames before starting key
|
|
}
|
|
]
|
|
}
|