diff options
Diffstat (limited to 'game/GameScene.cpp')
-rw-r--r-- | game/GameScene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/game/GameScene.cpp b/game/GameScene.cpp index e193f44..2b6b051 100644 --- a/game/GameScene.cpp +++ b/game/GameScene.cpp @@ -70,7 +70,7 @@ void GameScene::load_scene() { GameObject background_music = new_object("background_music", "audio", vec2(0, 0)); Asset background_music_asset {"asset/music/level.ogg"}; - background_music.add_component<AudioSource>(background_music_asset).loop = true; + background_music.add_component<AudioSource>(background_music_asset); GameObject boom_audio = new_object("boom_audio", "audio", vec2(0, 0)); Asset boom_audio_asset {"asset/sfx/window_smash.ogg"}; |