Adaptive music and music 👍

This commit is contained in:
Rendo 2025-07-21 14:28:40 +05:00
commit dcffb97a3d
48 changed files with 603 additions and 24 deletions

View file

@ -19,6 +19,7 @@ public partial class LevelRunner : Node
[Export] private float approachNotificationTime;
[Export] private AnimationPlayer player;
[Export] private Node rewardParent;
[Export] private AudioStream firstWaveSound;
[Signal] public delegate void ResourceChangedEventHandler(AdventureLevelResource resource);
[Signal] public delegate void WaveChangedEventHandler(int to);
[Signal] public delegate void HugeWaveApproachingCallbackEventHandler();
@ -68,6 +69,10 @@ public partial class LevelRunner : Node
EmitSignal(SignalName.FinalWaveInitiated);
return;
}
if (waveIndex == 0)
{
AudioSequencer.Play("fl_wave",firstWaveSound);
}
waveTimer.WaitTime = resource.waves[waveIndex].customWaveDelay > 0 ? resource.waves[waveIndex].customWaveDelay : resource.standardWaveDelay;
waveTimer.Start();