Is this information anywhere yet? I’ve tried finding a post but to no success.
Hello @GameDevCoder.
Warning: this is not the full solution (and there might be better ones), but this is how i want to start.
I used my old brick-breaker (working on “glitch-garden” atm.) and the height of my bricks have not been a common multiple of my screen-height.
So I just took some fixed values in the script. Would be better to calculate these values (see comments in code) on the fly.
This is just a short description, on how i would solve it.
- aside the breakable-bricks create a prefab for a massive Brick.
- Then I’d create an empty Game-Object called “BrickSpawner” (or however you’d like to call it).
- attach a script on this “BrickSpawner” (as said above this was a quick solution with fixed, estimated values just to show you a way on how to start to solve your problem, no top- or bottom-wall in this example).
To quick-solve this I had to put the walls “inside” my playground, as i got the floor/top/front/left-colliders outside out the playground in my original game.
Result:
Hope that helps & have a nice unity.
Chris
Thank you for replying. Only noticed this recently sorry. I will have to give this a good read. Thanks again for the post. All the best with your game development too ;).
Nice solution over there, congratulations!


