From c8b1eb57bb373f80be9055baa51fed24e531373e Mon Sep 17 00:00:00 2001 From: Max-001 Date: Mon, 6 Jan 2025 16:46:55 +0100 Subject: Added more audio --- game/player/PlayerSubScene.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'game/player/PlayerSubScene.cpp') 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 #include @@ -153,6 +154,18 @@ PlayerSubScene::PlayerSubScene(Scene & scn) { player.add_component().set_script().active = false; player.add_component().set_script().active = false; + player.add_component(Asset("asset/sfx/dud_zapper_lp.ogg")); + player.add_component(Asset("asset/sfx/dud_zapper_pop.ogg")); + player.add_component(Asset("asset/sfx/dud_fire.ogg")); + player.add_component(Asset("asset/sfx/jetpack_firecracker_lp_01.ogg")); + player.add_component(Asset("asset/sfx/jetpack_firecracker_lp_02.ogg")); + player.add_component(Asset("asset/sfx/jetpack_firecracker_lp_03.ogg")); + player.add_component(Asset("asset/sfx/jetpack_firecracker_lp_04.ogg")); + player.add_component(Asset("asset/sfx/jetpack_firecracker_lp_05.ogg")); + player.add_component(Asset("asset/sfx/jetpack_firecracker_lp_06.ogg")); + player.add_component(Asset("asset/sfx/jetpack_firecracker_lp_07.ogg")); + player.add_component(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(Asset("asset/sfx/barefoot_step_left_1.ogg")); player_audio.add_component(Asset("asset/sfx/barefoot_step_right_1.ogg")); -- cgit v1.2.3