INIT_HUD amb temps de les animacions per percentatge

ordenats en subcarpetes els fitxers d'audio
corregit typo LIFES a LIVES
This commit is contained in:
2025-12-09 22:57:01 +01:00
parent b8173b205b
commit b4e0ca7eca
10 changed files with 48 additions and 72 deletions

View File

@@ -23,7 +23,7 @@ JA_Sound_t* AudioCache::getSound(const std::string& name) {
// Normalize path: "laser_shoot.wav" → "sounds/laser_shoot.wav"
std::string normalized = name;
if (normalized.find("sounds/") != 0 && normalized.find('/') == std::string::npos) {
if (normalized.find("sounds/") != 0) {
normalized = "sounds/" + normalized;
}
@@ -57,7 +57,7 @@ JA_Music_t* AudioCache::getMusic(const std::string& name) {
// Normalize path: "title.ogg" → "music/title.ogg"
std::string normalized = name;
if (normalized.find("music/") != 0 && normalized.find('/') == std::string::npos) {
if (normalized.find("music/") != 0) {
normalized = "music/" + normalized;
}