added new slimes, fixed slime generation

This commit is contained in:
TAASONI3
2024-01-04 15:27:48 +01:00
parent dae53866e4
commit 4d2c52ded5
58 changed files with 6602 additions and 6477 deletions

View File

@@ -41,7 +41,7 @@ public class Tile : MonoBehaviour
public List<Vector3> getSpawnLocations()
{
List<Vector3> list = new List<Vector3>();
int objectAmount = objectAmount = rand.Next(40, 151);
int objectAmount = rand.Next(40, 151);
int iterations = 0;
Vector3 newPoint;
bool canSpawn;
@@ -52,7 +52,7 @@ public class Tile : MonoBehaviour
newPoint = new Vector3(rand.Next(-40, 40) + 100 * position.x, 50, rand.Next(-40, 40) + 100 * position.z);
foreach (Vector3 vector in list)
{
if (Vector3.Distance(vector, newPoint) < 10)
if (Vector3.Distance(vector, newPoint) < 12.5f)
{
canSpawn = false;
break;