官术网_书友最值得收藏!

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:

  1. The player-turn overlay is displayed so that the player knows it's their turn.
  2. The last-play overlay shows them what the other player played during the last run.
  3. The player plays a card by clicking on it.
  4. The card is removed from their hand and its effects applied.
  5. We wait a bit so that the player can see these effects in action.
  6. Then, the turn ends, and we switch the current player to the other one.
主站蜘蛛池模板: 若羌县| 阿合奇县| 潼关县| 元朗区| 贺州市| 塘沽区| 象州县| 安庆市| 双城市| 北碚区| 六安市| 灵川县| 西宁市| 湘阴县| 邻水| 都兰县| 信丰县| 临沂市| 石首市| 永川市| 化隆| 搜索| 盐池县| 阿荣旗| 苏尼特左旗| 宣城市| 长白| 永善县| 南岸区| 苍山县| 海兴县| 巴马| 龙里县| 江西省| 五大连池市| 平乡县| 屯门区| 桑植县| 诸暨市| 丽江市| 龙游县|