From 2f278d36afd79efafaa5ed08ef123789b5563680 Mon Sep 17 00:00:00 2001 From: Max-001 Date: Mon, 6 Jan 2025 15:52:40 +0100 Subject: Added footstep sound --- game/StartGameScript.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'game/StartGameScript.cpp') 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 #include @@ -39,6 +40,10 @@ void StartGameScript::fixed_update(crepe::duration_t dt) { = this->get_components_by_name("boom_audio").front(); boom_audio.play(); + BehaviorScript & player_audio_script + = this->get_components_by_name("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("background_music").front(); - background_music.play(true); + //background_music.play(true); this->took_jetpack = true; } -- cgit v1.2.3