Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Adding Points and Game Over | Criando um Jogo de Pegar: Encha a Mochila
Desenvolvimento de Jogos com Cursor

Adding Points and Game Over

Deslize para mostrar o 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".
Note
Prompt in Cursor

Make the falling items more fun by giving them different roles. Use regular school supply emojis (such as books, pencils, apples, and rulers) as items worth +1 point. Add one rare golden item (such as a tasty sandwich) that grants a significant bonus of +5 points. Add one bad item (such as a smelly sock) that should take away 1 life. Show the current score and lives at the top of the screen. When lives reach 0 or after a short timer (30 seconds) runs out, display a cheerful game over pop-up with the results and buttons to play again or return home. Keep everything kid-friendly, colorful, and smooth.

question mark

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

Selecione todas as respostas corretas

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 3

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

Seção 2. Capítulo 3
some-alt