We'll add our levels to the stage:
We built the visual representation of the levels based on the programming we previously created. The level changed when we introduced the second ball, which happened after 30 seconds of game play.
Level two is currently infinite.
What ideas do you have for creating levels? How about if you increase the ball speed for each additional level? For each ball, you need to adjust the number of steps the sprite moves when it bounces off the edge of the stage. See the following screenshot for a hint:
This will require you to rework the current scripts so that you can calculate a new number of steps to move based on the level and then store that new value in a variable.
You will also need a way to increment levels beyond what we have created. Time may not be the best option. Perhaps changing levels based on the score would be better.
3.15.141.206