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

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.
主站蜘蛛池模板: 开化县| 文山县| 射阳县| 伊宁县| 丰镇市| 万宁市| 永嘉县| 信丰县| 禹城市| 隆子县| 资溪县| 宾阳县| 大荔县| 上高县| 辽宁省| 松江区| 邻水| 宁波市| 汕尾市| 安远县| 衡南县| 汕尾市| 顺昌县| 丰宁| 酉阳| 武强县| 永仁县| 长乐市| 林周县| 临颍县| 阿瓦提县| 资中县| 建昌县| 星座| 独山县| 广丰县| 江油市| 盘锦市| 文化| 瑞昌市| 安龙县|