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

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.

We'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 our game, what happens when the rabbit touches an enemy?

Select the correct answer

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 4

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

Awesome!

Completion rate improved to 6.67

bookAdding Lives and Score

Swipe um das Menü anzuzeigen

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

We'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 our game, what happens when the rabbit touches an enemy?

Select the correct answer

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 4
some-alt