Step 8

Eating the other two food types


The code to eat the other two types of food will be very similar

We first need to add two new if statements under the previous one

Completing the code for eating the other two food types


Inside these new if statements add the code shown

The camera shake block can be found inside the Scene section

Coding the game over effect


Lastly, let’s customize what happens when we run out of time