Pular para o conteúdo
Kitbay
Skill

animations

MITAtualizado em 21 de ago. de 202640.693Estrelas no GitHub

A reference skill published in the Phaser game framework's own repository for creating and controlling sprite animations in Phaser 4.

O que a skill ensina

A reference skill published in the Phaser game framework's own repository for creating and controlling sprite animations in Phaser 4. It separates the game-wide animation manager from each sprite's animation state and covers building animations from spritesheets, texture atlases and Aseprite files, playback with reverse, delays, chaining and staggered starts across a group, mixes between pairs of animations, pausing, stopping on a frame and time scaling. Configuration tables list the animation settings and per-play overrides, and an events section gives the order of start, update, repeat and complete events. A list of pitfalls explains, for example, that global animations persist across scenes and that endlessly repeating animations never fire complete.

O que faz

  • Create animations from spritesheets and atlases
  • Chain and stagger sprite animations
  • Listen for animation events
  • Import animations from Aseprite