After finishing this lesson your project will look like this:
The next lesson you will be adding effects and making your game unique!
The technique I used is to imagine the gap between the walls, moving up and down.
The red line symbolizes the gap I am imagining:
We'll make a gap object and use it to place the walls properly...
To do this, we want to randomly increase or decrease the gap's y position by either
25 pixels whenever we create new walls
In this lesson we'll be doing an approximation of circle to rectangle collision- but it won't be perfect. It'd be a good exercise to try to create a more accurate system later on!
Here is how my project looked afterwards