Collect the Planes
This week we began creating a game where we have to collect items before the time runs out. If we collect all the items we move to the next level
We began by creating a splash screen. This shows a small message to the user about the game
We then created a variable to keep track of what level we are on ( imagine a variable is like a box, we use it to store data )
Next we added our main character and set up the controls
We then created a function to handle the level making.
A function is a small piece of code that we can call at certain times in our code
Inside the function we get the computer to pick a random background colour
We then created a new variable to keep track of how many items we have collected
Next we set up a loop to create a certain number of items to collect, then depending on what level we are on, it will add them on as well
The last thing we did today was to add the “Call Start” block to our green on start block to generate the level
Have a look at the full code below and test it in the simulator
 
                         
            