[GAME] Brick Smash! Check out my customised version of BlockBreaker

Brick Smash!

Hi all, I’ve just completed the chapter on BlockBreaker and have spent a little bit of time customising my version - now titled Brick Smash!
I’ve added some extra customisations using what I’ve learnt so far in the course, or through my own Unity research such as:
Custom paddle and collider shape
Lives and a life counter
Level number splash screens
10 progressively harder levels
5 brick types
Custom sprites
Custom sounds
Modified play space to further reduce chances of "boring loops"
Secret cheat (autoplay - see if you can find it)
Constraining and hiding the mouse cursor (I found it distracting having it on screen near the paddle)
Esc key to exit to main menu while in game

If I had the time / knowledge:
I would have liked to add powerups like the great Arkanoid but think it’d be time consuming and hit/miss with my current basic coding knowledge - I think I’ll learn far better ways to do this later in the course.
I tried and failed resetting the ball and paddle after loss of life while keeping the destroyed brick configuration, so now you just have to start the level again instead.
Could not get a fade in / fade out level transition working, there are plenty of guides on the internet but they’re either for Unity 4.x and no longer work or they’re far more complex than I can currently implement.

I’ve not yet managed to complete all 10 levels in one sitting, so please let me know if you do - the last level has pretty cool variation and theme, and should also be pretty hard to beat!

Really enjoying the course so far, the further in I get the more my brain starts to fill in the gaps and imagine the vast possibilities of what can be accomplished in Unity.

Welcome any comments

http://gamebucket.io/game/14c6ea54-e8f1-4a80-bb69-f9ef2c753c33

Cheers!
Foundryworker

1 Like

Hey,

Depending on what kind of powerups you want it’s quite doable to do it. The way I did it was to add for example a red brick as a special brick and when that is hit change the paddle properties so that it becomes smaller. A green brick that when hit the ball color changes to green (by changing the sprite) and making it do double damage.

Regarding resetting the ball and paddle I haven’t tried/done this myself but I think I’d approach it by upon starting the level in your start function get the position of your paddle and ball and store it. When losing a life have a call to a function that sets the ball and paddle to the stored position.

I like your game! Specially the sounds, good job!

1 Like

Thanks Mike, I’ll look into that. Makes sense to store the position of the ball/paddle at the start - I think that’s where I was having trouble as I was trying to reset them to what they were doing at game start but I guess that isn’t really specified as it’s set by the editor not the code. Storing at the start would fix that.