Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Adding Points and Game Over | Creating a Catching Game Pack the Bag
Building Games with Cursor AI

bookAdding Points and Game Over

Catching supplies is fun, but it gets even better when items have different roles. Let's add points, lives, and a cheerful game over screen to make the challenge feel more realistic.

The falling items won't all behave the same. Some will be good, some bad, and one especially rare and valuable.

Here's what you will add:

Game over pop-up

  • Triggers when lives reach 0 or after a short timer (30s) runs out;
  • Shows the final score;
  • Has two buttons: "Play Again" and "Back Home".
question mark

Which of the following statements accurately describe the roles of the falling items and the game over conditions in the game?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 3

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Suggested prompts:

Can you explain how the scoring system works in more detail?

What happens when the timer runs out or all lives are lost?

Can you give examples of how the game over pop-up looks and functions?

Awesome!

Completion rate improved to 6.67

bookAdding Points and Game Over

Swipe to show menu

Catching supplies is fun, but it gets even better when items have different roles. Let's add points, lives, and a cheerful game over screen to make the challenge feel more realistic.

The falling items won't all behave the same. Some will be good, some bad, and one especially rare and valuable.

Here's what you will add:

Game over pop-up

  • Triggers when lives reach 0 or after a short timer (30s) runs out;
  • Shows the final score;
  • Has two buttons: "Play Again" and "Back Home".
question mark

Which of the following statements accurately describe the roles of the falling items and the game over conditions in the game?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 3
some-alt