From 7e50e5c67239e012c411bb977f2b62e439889d63 Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 13 Dec 2022 18:30:43 +0100 Subject: [PATCH] Circular spawner distance --- .../Game/Unit/Enemy/EnemySpawner/CircularEnemySpawner.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/Scripts/Game/Unit/Enemy/EnemySpawner/CircularEnemySpawner.ts b/assets/Scripts/Game/Unit/Enemy/EnemySpawner/CircularEnemySpawner.ts index 25339e1..d6ef8da 100644 --- a/assets/Scripts/Game/Unit/Enemy/EnemySpawner/CircularEnemySpawner.ts +++ b/assets/Scripts/Game/Unit/Enemy/EnemySpawner/CircularEnemySpawner.ts @@ -25,8 +25,8 @@ export class CircularEnemySpawner extends DelayedEnemySpawner { const angle: number = (2 * Math.PI) / this.enemiesToSpawn; for (let i = 0; i < this.enemiesToSpawn; i++) { - const posX: number = roundToOneDecimal(Math.sin(angle * i)) * 700; - const posY: number = roundToOneDecimal(Math.cos(angle * i)) * 700; + const posX: number = roundToOneDecimal(Math.sin(angle * i)) * 600; + const posY: number = roundToOneDecimal(Math.cos(angle * i)) * 600; this.enemySpawner.spawnNewEnemy(posX, posY, this.enemyId); } }