aoberoi / SwiftUI-Set

CS193P Set game using SwiftUI (Spring 2023)
0 stars 0 forks source link

Change draw more cards animation to be concurrent with animation moving matched selection to discard pile #7

Open aoberoi opened 1 year ago

aoberoi commented 1 year ago

When the existing selection contains a match, and tapping the deck (calling the dealMoreCards intent), the animations that move the selected cards to the discard pile and which deal more cards should be overlapping.

The cards being dealt should move into the indices of the cards being discarded. The reasoning is that its jarring to see the playArea cards animate to grow as cards are removed, and then shrink as cards are added. Since the number of cards net isn't changing, the sizes should stay the same. This strategy should keep the sizes from changing.