[BROKEN] I have audio for a basic cutscene that's about the most cringe thing you can ever hear so you can't hear it.
This commit is contained in:
parent
5e9dad51b0
commit
e6072c9f1e
2 changed files with 4 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"sounds": {
|
||||
"epic_theme": "assets/sounds/epic_theme.mp3",
|
||||
"rat_king_fight": "assets/sounds/RatKing_Fight_Audio-Master.ogg",
|
||||
"Sword_Hit_1": "assets/sounds/Creature_Sounds-Sword_Hit_1.ogg",
|
||||
"Evil_Eye_Sound_1": "assets/sounds/Creature_Sounds-Evil_Eye_Sound_1.ogg",
|
||||
"Evil_Eye_Sound_2": "assets/sounds/Creature_Sounds-Evil_Eye_Sound_2.ogg",
|
||||
|
|
|
|||
|
|
@ -11,12 +11,12 @@
|
|||
namespace storyboard {
|
||||
UI::UI(const std::string& story_name) :
|
||||
$view_texture({SCREEN_WIDTH, SCREEN_HEIGHT}),
|
||||
$view_sprite($view_texture.getTexture()),
|
||||
$audio(sound::get_sound_pair("ambient_1").sound)
|
||||
$view_sprite($view_texture.getTexture())
|
||||
{
|
||||
$view_sprite.setPosition({0, 0});
|
||||
auto config = settings::get("stories");
|
||||
$story = components::convert<components::Storyboard>(config[story_name]);
|
||||
$audio = sound::get_sound_pair($story.audio).sound;
|
||||
}
|
||||
|
||||
void UI::init() {
|
||||
|
|
@ -32,8 +32,7 @@ namespace storyboard {
|
|||
}
|
||||
|
||||
$ui.layout($layout);
|
||||
|
||||
sound::play($story.audio, true);
|
||||
$audio->play();
|
||||
}
|
||||
|
||||
void UI::render(sf::RenderWindow &window) {
|
||||
|
|
@ -60,7 +59,6 @@ namespace storyboard {
|
|||
|
||||
void UI::track_audio() {
|
||||
auto& beat = $story.beats[cur_beat % $story.beats.size()];
|
||||
|
||||
auto track_head = $audio->getPlayingOffset();
|
||||
auto next_beat = parse_time_code(beat[0]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue