Tracking Moves and Time
メニューを表示するにはスワイプしてください
The game is fun and rewarding, let's make it more engaging by tracking how well the player performs. You'll count their moves and measure their time, then show the results when the game ends.
Here's what you'll add in this step.
Move counter
- One move equals flipping two cards;
- The counter increases every time the player makes a new attempt.
Timer
- Starts when the first card is flipped;
- Pauses whenever a Fun Fact pop-up is open;
- Resumes when the pop-up is closed;
- Stops completely once the final pair is matched.
Win screen update
Alongside the "You won! 🎉" message, also show the player's total moves and total time.
Reset on new game
Both the move counter and timer should reset properly when the player starts again.
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 5
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください
セクション 1. 章 5