player.yaml 470 B

1234567891011
  1. # Player animation state machine (D38): states map to sprite defs; the render
  2. # layer picks the state by the entity's anim field or walk/idle motion inference
  3. # (an entity whose spriteRef matches this id — "player" — uses this def).
  4. id: player
  5. initial: idle
  6. states:
  7. - { id: idle, spriteRef: player, loop: true }
  8. - { id: walk, spriteRef: player-walk, fps: 8, loop: true }
  9. transitions:
  10. - { from: idle, to: walk, on: move }
  11. - { from: walk, to: idle, on: idle }