215k views
6 votes
Imagine you are playing a video game like Super Mario or Sonic and you lose your last life. What are THREE distinct things that will happen once your lives become 0? Give three examples. Then put on your programmer's hat. Describe your examples using pseudocode; in other words, you don't have to use the exact language Scratch blocks would, as long as you write out each step in such a way that it's clear what the code would do.

User Jafarbtech
by
2.8k points

1 Answer

2 votes

Answer:

Three distinct things that would happen are

1) There would be a death animation played

2) GAME OVER text would appear

3) The game would most likely start over at the first level

Step-by-step explanation:

The pseudocode:

1) Play death animation and music

2)Stop animation and music

3) Display Game over text

4) Remove game over text

5) Reset level

6) Open on beginning screen/level

User Dariusz Rusin
by
2.9k points