Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Adding Lives and Score | Developing an Adventure Game Catch the Carrot
/
Game Development with Cursor

bookAdding Lives and Score

メニューを表示するにはスワイプしてください

Let's add a sense of challenge and reward with lives and a score that tracks how many carrots you catch.

You're adding light gamification so players feel progress and challenge across multiple rounds, not just in a single run.

Here's what should be added.

Lives system
expand arrow
  • The player starts with 3 lives;
  • Show them at the top of the screen as emojis;
  • When the rabbit touches an enemy (fox, wolf, etc.), the player loses one life;
  • After losing a life, reset the rabbit back to the starting position at the bottom, but don't end the game yet.
Game over
expand arrow
  • Only when all lives are gone, show a big "Game Over" pop-up;
  • The pop-up should include a friendly message (keep it soft, not scary);
  • Add two buttons: "Play Again" and "Home";
  • While the pop-up is visible, the field should be paused.
Score system
expand arrow
  • Every time the rabbit reaches the carrot at the top, add +1 point;
  • After scoring, reset the rabbit to the bottom so the next round can begin;
  • The score should stay visible, next to the hearts at the top.
question mark

In the game, what happens when the rabbit touches an enemy?

正しい答えを選んでください

すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 3.  4

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

セクション 3.  4
some-alt