- 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.
推薦閱讀
- 手機安全和可信應用開發指南:TrustZone與OP-TEE技術詳解
- 深入理解Android(卷I)
- Learn TypeScript 3 by Building Web Applications
- GAE編程指南
- TypeScript入門與實戰
- GraphQL學習指南
- PyTorch自動駕駛視覺感知算法實戰
- Building a RESTful Web Service with Spring
- Vue.js前端開發基礎與項目實戰
- R語言游戲數據分析與挖掘
- 數據結構(Python語言描述)(第2版)
- 編譯系統透視:圖解編譯原理
- Hands-On Enterprise Automation with Python.
- C語言程序設計上機指導與習題解答(第2版)
- PHP編程基礎與實例教程