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

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.
主站蜘蛛池模板: 潮安县| 平定县| 乡城县| 佳木斯市| 黄骅市| 隆林| 浦北县| 张家界市| 富裕县| 高陵县| 荔浦县| 于田县| 壤塘县| 达尔| 蕲春县| 海城市| 古蔺县| 无极县| 桐城市| 祁阳县| 泸西县| 商洛市| 安庆市| 礼泉县| 南华县| 金沙县| 宁乡县| 娄底市| 马龙县| 呼图壁县| 红桥区| 鄂伦春自治旗| 蓬溪县| 南宁市| 桂东县| 义乌市| 海伦市| 繁峙县| 鞍山市| 遵化市| 四川省|