Working sound system and most enemies have a sound effect. This will make it easier to add sounds now.
This commit is contained in:
parent
83df9ff03b
commit
20cbc3a21c
12 changed files with 126 additions and 5 deletions
15
tests/sound.cpp
Normal file
15
tests/sound.cpp
Normal 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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue