Look at my BlockBreaker Graffiti Edition

Here is my completed Block Breaker game from the Udemy Unity Course. It took me a while but I learned so much! I can’t wait to progress on to the next course. Please enjoy and let me know what you think.

Also I worked literally 4 hours trying to get a Life Counter in place to make it a little easier and possibly expand more onto the game. If you have any suggestions on how to add Lives to Block Breaker using Unity 4.7 let me know, information about adding lives is really hard to find for me for some reason.

BlockBreaker Graffiti Edition

I love the sound effects.

The way I added lives was by adding a ‘public static int variable’ in my ‘lose collider’ script. Each time I lost, it detracted from the int variable instead of loading the ‘lose’ level. When my int variable reached 0, I then had it load the lose level scene.

It got complicated though, because then I had to make sure each time I lost and still had a life left, I had to reset the ball back to the paddle (instead of restarting the scene). And then I had to make sure that when I did actually ‘lose’ or ‘win’ the game, I had to reset the lives back to the right number. But that involved calling different scripts from my level manager

Then I had to figure out how to represent how many lives there were in the UI. I ended up using a text box similar to the adventure game earlier in the course.

Crazy how something so simple can get so complicated.

Privacy & Terms