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

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.
主站蜘蛛池模板: 北票市| 安图县| 新竹县| 宿迁市| 武山县| 阳东县| 富川| 平顶山市| 博客| 利辛县| 高台县| 桦川县| 枝江市| 金塔县| 陇南市| 朝阳县| 廊坊市| 长兴县| 夏津县| 临颍县| 龙州县| 平凉市| 双柏县| 连山| 灵台县| 阿坝县| 阆中市| 泽库县| 焉耆| 彰化市| 大关县| 大同市| 韩城市| 彭水| 阳新县| 疏附县| 惠水县| 鹤壁市| 迁西县| 福清市| 湟中县|