Working sound system and most enemies have a sound effect. This will make it easier to add sounds now.

This commit is contained in:
Zed A. Shaw 2025-02-22 12:48:37 -05:00
parent 83df9ff03b
commit 20cbc3a21c
12 changed files with 126 additions and 5 deletions

15
tests/sound.cpp Normal file
View file

@ -0,0 +1,15 @@
#include <catch2/catch_test_macros.hpp>
#include <fmt/core.h>
#include <string>
#include "sound.hpp"
#include "levelmanager.hpp"
using namespace fmt;
TEST_CASE("test sound manager", "[sound]") {
sound::init();
sound::play("sword_1");
sound::play_at("sword_1", 0.1, 0.1, 0.1);
}