Hi just thought I’d share my block breaker version with multiple ball support. Its only one level currently but here’s a short gif of the autoplay playing the first level. Any feedback is appreciated!

Hi just thought I’d share my block breaker version with multiple ball support. Its only one level currently but here’s a short gif of the autoplay playing the first level. Any feedback is appreciated!

Wow that’s super cool. Nice job on making the auto play determine which spot is more important to be in too with multiple balls on the screen! I’m curious to see how you did that.
For determining the position of the paddle I simply added all balls to an array and then used a method to determine which ball was closest to the paddle in terms of its y position. Then I used the x position of the returned ball for the paddles pos. Here’s the code
Ball GetClosestBall(Ball[] balls)
{
Transform tMin = null;
float minDist = Mathf.Infinity;
Vector2 currentPos = transform.position;
foreach (Ball t in balls)
{
float dist = t.transform.position.y - currentPos.y;
if (dist < minDist)
{
tMin = t.transform;
minDist = dist;
}
}
return tMin.gameObject.GetComponent<Ball>();
}
This looks super fun! What did you do to make all the balls break lose in an explosion-like way? Setting random velocities for all them?
That looks awesome!