diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-06 16:46:55 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-06 16:46:55 +0100 |
commit | c8b1eb57bb373f80be9055baa51fed24e531373e (patch) | |
tree | d7a8e4367872c1686aed4db1d2c096ae984c35f8 /game/player/PlayerSubScene.cpp | |
parent | 2f278d36afd79efafaa5ed08ef123789b5563680 (diff) |
Added more audio
Diffstat (limited to 'game/player/PlayerSubScene.cpp')
-rw-r--r-- | game/player/PlayerSubScene.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/game/player/PlayerSubScene.cpp b/game/player/PlayerSubScene.cpp index 11575c6..41fcf51 100644 --- a/game/player/PlayerSubScene.cpp +++ b/game/player/PlayerSubScene.cpp @@ -4,6 +4,7 @@ #include "PlayerScript.h" #include "../Config.h" +#include "api/Asset.h" #include <crepe/api/Animator.h> #include <crepe/api/AudioSource.h> @@ -153,6 +154,18 @@ PlayerSubScene::PlayerSubScene(Scene & scn) { player.add_component<BehaviorScript>().set_script<PlayerScript>().active = false; player.add_component<BehaviorScript>().set_script<PlayerEndScript>().active = false; + player.add_component<AudioSource>(Asset("asset/sfx/dud_zapper_lp.ogg")); + player.add_component<AudioSource>(Asset("asset/sfx/dud_zapper_pop.ogg")); + player.add_component<AudioSource>(Asset("asset/sfx/dud_fire.ogg")); + player.add_component<AudioSource>(Asset("asset/sfx/jetpack_firecracker_lp_01.ogg")); + player.add_component<AudioSource>(Asset("asset/sfx/jetpack_firecracker_lp_02.ogg")); + player.add_component<AudioSource>(Asset("asset/sfx/jetpack_firecracker_lp_03.ogg")); + player.add_component<AudioSource>(Asset("asset/sfx/jetpack_firecracker_lp_04.ogg")); + player.add_component<AudioSource>(Asset("asset/sfx/jetpack_firecracker_lp_05.ogg")); + player.add_component<AudioSource>(Asset("asset/sfx/jetpack_firecracker_lp_06.ogg")); + player.add_component<AudioSource>(Asset("asset/sfx/jetpack_firecracker_lp_07.ogg")); + player.add_component<AudioSource>(Asset("asset/sfx/jetpack_firecracker_lp_08.ogg")); + GameObject player_audio = scn.new_object("player_audio", "player_audio", vec2(0, 0)); player_audio.add_component<AudioSource>(Asset("asset/sfx/barefoot_step_left_1.ogg")); player_audio.add_component<AudioSource>(Asset("asset/sfx/barefoot_step_right_1.ogg")); |