Posted April 05, 2023 by apesticka
Date: 5. 4. 2023
Activity:
- Made a breakout clone a bit juicier
Notes:
I didn't start with the project from the lab (I started with an new one instead) so it probably doesn't have everything that was done in the lab.
I first implemented an animation for the bricks setup using DOTween. Then I implemented a camera shake when the ball hits something - also using DOTween. I found DOTween to be really easy to use and I'm glad I know about it now. Will definitely use again somewhere!
I then wanted to make a small particle explosion for when a brick breaks. I spent quite a bit of time fiddling with the values of the particle system but I couldn't get it to look as I wanted. I then thought of making the brick 'turn into' particles and slowly disappear which was surprisingly much easier to implement (and I think it looks better that way anyways). Next, I added sounds. I don't like the default beep so I used https://sfxr.me/ to generate a better sound. I think it sounds great. Then I also made the bricks choose a random color at start and gave the same color to the particle system.
Invested hours:
About 2.5h