```git
Update wave timing from 5s/10s intervals to 30s/60s intervals for game progression ``` The commit message summarizes the change where wave timers were adjusted from 5-second and 10-second intervals to 30-second and 60-second intervals, effectively slowing down the game progression. This change likely makes the waves less frequent and more manageable for players. The changes modify: - Wave 1 trigger time: from 5 seconds (5000ms) to 30 seconds (30000ms) - Wave 2 trigger time: from 10 seconds (10000ms) to 60 seconds (60000ms) This adjustment increases the time between waves, potentially making the game easier or giving players more time to prepare for each wave.
This commit is contained in:
parent
bd00c62205
commit
1af359e09f
|
|
@ -121,9 +121,9 @@ export class GameScene extends Phaser.Scene {
|
|||
this.waveTimer += delta;
|
||||
|
||||
// Check for wave changes every 30 seconds (30,000 milliseconds)
|
||||
if (this.waveTimer >= 5000 && this.currentWave === 0) {
|
||||
if (this.waveTimer >= 30000 && this.currentWave === 0) {
|
||||
this.startWave(1);
|
||||
} else if (this.waveTimer >= 10000 && this.currentWave === 1) {
|
||||
} else if (this.waveTimer >= 60000 && this.currentWave === 1) {
|
||||
this.startWave(2);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue