- 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.
推薦閱讀
- UNIX編程藝術(shù)
- Spring 5.0 Microservices(Second Edition)
- MySQL數(shù)據(jù)庫(kù)管理實(shí)戰(zhàn)
- Intel Galileo Essentials
- R語(yǔ)言經(jīng)典實(shí)例(原書(shū)第2版)
- Rust編程:入門、實(shí)戰(zhàn)與進(jìn)階
- 軟件界面交互設(shè)計(jì)基礎(chǔ)
- Mastering Selenium WebDriver
- 少年輕松趣編程:用Scratch創(chuàng)作自己的小游戲
- AIRAndroid應(yīng)用開(kāi)發(fā)實(shí)戰(zhàn)
- R Deep Learning Cookbook
- 數(shù)據(jù)結(jié)構(gòu)習(xí)題解析與實(shí)驗(yàn)指導(dǎo)
- Learning PHP 7
- 輕松上手2D游戲開(kāi)發(fā):Unity入門
- 深入淺出Go語(yǔ)言編程