Bailiú na míreanna part 2
We finished building our Tosaigh function to create a new level this week
With each new level, we set the count to 0
We then added a for loop to create 10 items to collect we also added in more items depending on what level we are on
We then set each item to spawn in random locations on our game window
Lastly we added a message for the user to say what level we are on
And then created the countdown timer, so each level has 10 seconds to collect everything!
Have a look at the full code below and test it out in the simulator