boardgame
boardgame copied to clipboard
Figure out a way to do animations of components with a stop-over point
Useful for shuffling, and for highlighting cards that are being drawn.
The movement isn't semantic so shouldn't be encoded server-side. It's really just a stop over point in the middle that it should animate to, then wait, then finish.
More complex example: in valentine, in scoring round, all of the various cards are brought into the middle (big), with each person's little picture. Then they sort based on which is the winner, and then something is shown about them winning.
That example could mostly be done with #396, but with a bit more "trigger these animations when this changes" kind of behavior.
Related to #379
The current animation system, with the resolution of #396 , is that you have to have a move to animate to, so the canonical way of doing e.g. the valentine case mentioned above is to have a ScoringCardStack where you literally move the card to a different stack (which would be rendered client side as a stack centered in view large over top of everything) and then away. So the way you'd do that is have a move.MoveAllTo to game.ScoringStack, and then a fix up move to MoveAllTo() from game.ScoringStack to game.DiscardStack. (Would MoveAllTo notice that there are new cards to move?)