• Create anims config, can be used to configure anims

    For more details about the config object, see: https://photonstorm.github.io/phaser3-docs/Phaser.Types.Animations.html#.Animation

    Parameters

    • anims_key: string

      key that the animation will be associated with

    • anim_frames: ObjectConfig[]

      data used to generate the frames for animation

    • frame_rate: number = 24

      frame rate of playback in frames per second

    • duration: any = null

      how long the animation should play in seconds. If null, will be derived from frame_rate

    • repeat: number = -1

      number of times to repeat the animation, -1 for infinity

    • yoyo: boolean = false

      should the animation yoyo (reverse back down to the start)

    • show_on_start: boolean = true

      should the sprite be visible when the anims start?

    • hide_on_complete: boolean = false

      should the sprite be not visible when the anims finish?

    Returns ObjectConfig

    animation config