- 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.
推薦閱讀
- 精通Nginx(第2版)
- Hands-On Image Processing with Python
- Wireshark Network Security
- PostgreSQL 11從入門到精通(視頻教學版)
- Getting Started with Python Data Analysis
- Python數據分析從0到1
- Learning ArcGIS for Desktop
- Create React App 2 Quick Start Guide
- Struts 2.x權威指南
- 寫給大家看的Midjourney設計書
- 交互設計師成長手冊:從零開始學交互
- 3D Printing Designs:Octopus Pencil Holder
- HTML5程序設計基礎教程
- Unity虛擬現實開發圣典
- HTML5+CSS+JavaScript深入學習實錄