afegit sistema de audio

This commit is contained in:
2025-12-02 13:51:54 +01:00
parent 9ceb21c04f
commit e51749dbc6
10 changed files with 5685 additions and 2 deletions

View File

@@ -7,6 +7,7 @@
#include <cstdlib>
#include <iostream>
#include "core/audio/audio.hpp"
#include "core/defaults.hpp"
#include "core/rendering/line_renderer.hpp"
@@ -51,6 +52,9 @@ void DebrisManager::explotar(const std::shared_ptr<Graphics::Shape>& shape,
return;
}
// Reproducir sonido de explosión
Audio::get()->playSound(Defaults::Sound::EXPLOSION, Audio::Group::GAME);
// Obtenir centre de la forma per a transformacions
const Punt& shape_centre = shape->get_centre();