Used ogg for bgm
This commit is contained in:
parent
03b22cc3af
commit
53f8df0ca7
@ -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
|
||||
|
@ -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.
BIN
gamedata/maps/Level 1/bgm.ogg
Normal file
BIN
gamedata/maps/Level 1/bgm.ogg
Normal file
Binary file not shown.
Binary file not shown.
BIN
gamedata/maps/Level 2/bgm.ogg
Normal file
BIN
gamedata/maps/Level 2/bgm.ogg
Normal file
Binary file not shown.
Binary file not shown.
BIN
gamedata/maps/Level 3/bgm.ogg
Normal file
BIN
gamedata/maps/Level 3/bgm.ogg
Normal file
Binary file not shown.
@ -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.
BIN
gamedata/sounds/bgm/overworld.ogg
Normal file
BIN
gamedata/sounds/bgm/overworld.ogg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user