TO SQUASH:

Added eye ball
This commit is contained in:
2026-08-04 21:23:39 -04:00
parent b3d28dd2c9
commit 7fcbd5a38a
18 changed files with 1375 additions and 9 deletions
+2 -1
View File
@@ -41,6 +41,7 @@ public class BallSpawner : MonoBehaviour
ballQueue.Enqueue(() => SpawnBall(glassBallPrefab));
ballQueue.Enqueue(() => SpawnBall(glassBallPrefab));
ballQueue.Enqueue(() => SpawnBall(glassBallPrefab));
ballQueue.Enqueue(() => SpawnBall(eyeBallPrefab));
StartCoroutine(SpawnBalls());
}
@@ -121,7 +122,7 @@ public class BallSpawner : MonoBehaviour
bounds = boardRenderer.bounds;
}
const float edgeInset = 0.05f;
const float edgeInset = 0.1f;
float randomX = Random.Range(bounds.min.x + edgeInset, bounds.max.x - edgeInset);
float randomY = Random.Range(bounds.min.y + edgeInset, bounds.max.y - edgeInset);