top of page
LIVES
You'll need to create a variable to show how many lives your crab has, and set it so that when the crab has no lives left, the game ends!
1. Create a variable called lives
2. Add the code change lives by -1 to part of your code. HINT: Add this to the part that electrifies your maze!
3. Next include a reset so that when you have zero lives then your game goes back to level 1, your lives are set to 3 and your score is set to zero
bottom of page