aboutsummaryrefslogtreecommitdiff
path: root/game/StartGameScript.cpp
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2025-01-06 15:52:40 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2025-01-06 15:52:40 +0100
commit2f278d36afd79efafaa5ed08ef123789b5563680 (patch)
treef6e2f4b48f1d37bad34d3cd6ef5d01861d89ad77 /game/StartGameScript.cpp
parent1f799c9cab4374e75e7a629874aa922faa14dae5 (diff)
Added footstep sound
Diffstat (limited to 'game/StartGameScript.cpp')
-rw-r--r--game/StartGameScript.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/game/StartGameScript.cpp b/game/StartGameScript.cpp
index 466dbce..1a7e3e7 100644
--- a/game/StartGameScript.cpp
+++ b/game/StartGameScript.cpp
@@ -1,5 +1,6 @@
#include "StartGameScript.h"
#include "Config.h"
+#include "api/BehaviorScript.h"
#include <crepe/api/Animator.h>
#include <crepe/api/AudioSource.h>
@@ -39,6 +40,10 @@ void StartGameScript::fixed_update(crepe::duration_t dt) {
= this->get_components_by_name<AudioSource>("boom_audio").front();
boom_audio.play();
+ BehaviorScript & player_audio_script
+ = this->get_components_by_name<BehaviorScript>("player_audio").front();
+ player_audio_script.active = true;
+
this->created_hole = true;
}
@@ -52,7 +57,7 @@ void StartGameScript::fixed_update(crepe::duration_t dt) {
AudioSource & background_music
= this->get_components_by_name<AudioSource>("background_music").front();
- background_music.play(true);
+ //background_music.play(true);
this->took_jetpack = true;
}