diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-11 12:09:04 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-11 12:09:04 +0100 |
commit | 0e1e5e9fa6c6cf37af983122243d230a320dfa7b (patch) | |
tree | 6b0fa12098ebe5d81a6f8030102eb575324cddda /game | |
parent | 417b001a26a188f91289558d125988c5f853ddbe (diff) |
Fix: Added audio track
Diffstat (limited to 'game')
-rw-r--r-- | game/preview/PrevPlayerSubScene.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/game/preview/PrevPlayerSubScene.cpp b/game/preview/PrevPlayerSubScene.cpp index 9ff111c..56a434a 100644 --- a/game/preview/PrevPlayerSubScene.cpp +++ b/game/preview/PrevPlayerSubScene.cpp @@ -78,4 +78,5 @@ PrevPlayerSubScene::PrevPlayerSubScene(Scene & scn) { }); player.add_component<BoxCollider>(vec2(50, 50)); player.add_component<BehaviorScript>().set_script<PrevPlayerScript>(); + player.add_component<AudioSource>(Asset {"asset/music/level.ogg"}).stop(); } |