boardgame
boardgame copied to clipboard
Animatable items should get post-animation-delay property
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
- [ ] 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.
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