- Vue.js 2 Web Development Projects
- Guillaume Chau
- 115字
- 2021-07-02 22:34:37
Gameplay
All of our components are done! We only need to add some gameplay logic for the app to be playable. When the game begins, each players draws their initial hand of cards.
Then, each player's turn follows these steps:
- The player-turn overlay is displayed so that the player knows it's their turn.
- The last-play overlay shows them what the other player played during the last run.
- The player plays a card by clicking on it.
- The card is removed from their hand and its effects applied.
- We wait a bit so that the player can see these effects in action.
- Then, the turn ends, and we switch the current player to the other one.