boardgame icon indicating copy to clipboard operation
boardgame copied to clipboard

Animatable items should get post-animation-delay property

Open jkomoros opened this issue 6 years ago • 2 comments

Originally captured in #396.

Basically, components should have a post-animation-delay attribute that configures how many ms after we thought we were done with animations before actually firing animation-done. This allows things like a card animating to a central spot for visibility, then waiting for a bit (non-semantically) then animating to another location.

Should attach to the base animatablecomponent logic, part of #714

jkomoros avatar Oct 20 '18 18:10 jkomoros

  • [ ] update architecture.md
  • [ ] update the "client animations" section of TUTORIAL
  • [ ] Add a move run in debuganimations to move a card to a central spot (rendered large in the middle of the screen), then to the other location.

jkomoros avatar Oct 20 '18 18:10 jkomoros

Note that this is similar to renderer.delayAnimation(), but this can be done entirely via attributes, no need for writing finicky code that's tied to precise move names

jkomoros avatar Oct 22 '18 11:10 jkomoros