phaser/src/animations/config.json
2018-01-16 13:00:55 +00:00

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
}
]
}