Adaptive music and music 👍
This commit is contained in:
parent
a8ae482cbe
commit
dcffb97a3d
48 changed files with 603 additions and 24 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue