Used ogg for bgm

This commit is contained in:
theo@manjaro 2021-11-26 16:43:08 +01:00
parent 03b22cc3af
commit 53f8df0ca7
11 changed files with 7 additions and 4 deletions

View File

@ -4,4 +4,5 @@
- Overworld : Kevin MacLeod - Itty Bitty 8 Bit
- Level 1 : Jeremy Blake - Powerup
- Level 2 : Quincas Moreira - Robot City
- Level 3 : Kubbi - Up In My Jam

View File

@ -51,8 +51,10 @@ class Game():
mapdico["filler"] = pygame.image.load(i.path).convert_alpha()
else:
mapdico["tilesets"][i.name] = pygame.image.load(i.path).convert_alpha()
if name=="bgm.mp3":
mapdico["bgm"] = pygame.mixer.Sound(i.path)
if len(name)==7:
if name.startswith("bgm"):
if name.endswith(".wav") or name.endswith(".ogg") or name.endswith(".mp3"):
mapdico["bgm"] = pygame.mixer.Sound(i.path)
except:
self.log("Erreur",mapfolder,name,"Fichier invalide")
if name=="map.json":

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -11,7 +11,7 @@ class Levels(BaseObject):
self.nodes.append(i.copy())
self.customvalues = customvalues
self.bgm = self.game.sound_lib["bgm/overworld.mp3"]
self.bgm = self.game.sound_lib["bgm/overworld.ogg"]
self.bgm.play(-1)
self.sfx = self.game.sound_lib["sfx/mapmove.wav"]

Binary file not shown.

Binary file not shown.