Play it here:
https://www.gamebucket.io/game/75fe8149-b969-4f2e-b58f-b08c1234c272
I added a text box for lives with a script behind it containing a static variable, and a method to decrease the lives which gets called from the losecollider. If there are lives left, it simply sets the HasStarted on the ball flag back to false (via a new setHasStarted method on the ball).
I also had problems with the ball slowing down drastically… I think as a result of certain collisions on corners of blocks… Wasn’t sure how to handle this with the unity physics engine, so added code in ball.cs to set the velocity to 7 if it dropped below that number. Seemed to work quite well.
When my son comes back from Uni, I’ll ask him to do some new sounds - he’s good with that stuff.
Hope you enjoy.