1. Sami Loone
  2. Fat x Fast

Commits

dryatu  committed 9650fab

Fixed a multiplayer minimap bug. Changed the musics.

  • Participants
  • Parent commits 7b47e19
  • Branches default

Comments (0)

Files changed (6)

File FatxFast/gui/hud/minimapframe.py

View file
     def __init__(self, game, flipped=False, loaded=False,**kwargs):
         super(MiniMapFrame, self).__init__(game, **kwargs)
         self._loaded = loaded
-        self._temp_surf = pygame.Surface((0,0))
+        self._temp_surf = pygame.Surface((0,0), pygame.SRCALPHA)
         self.loaded = loaded
         self.camera = Camera((0,0))
         if loaded:

File FatxFast/levelsystem.py

View file
             kwargs.update(copy.deepcopy(self.level_complexity["data"]))
             self.gamescene.tilemap.load_generated(**kwargs)
         minimap = self.gamescene.get_widget("minimap")
-        minimap.load_minimap()
+        minimap.load_minimap() 
+        if len(self.gamescene.save.playerdata) > 1:
+            minimap.toggle_position()
         if self.gamescene.save.mapdata.get("minimap_overlay"):
             minimap.overlay_surf = pygame.image.frombuffer(
                 self.gamescene.save.mapdata["minimap_overlay"], 

File FatxFast/rsc/intro_cosmos.mp3

Binary file removed.

File FatxFast/rsc/nicearp.mp3

Binary file removed.

File FatxFast/scenes/gamescene.py

View file
 
         #self.game.audio.load_sound("coffeedrink.wav")
         self.game.audio.stop_music()
-        #self.game.audio.load_music("nicearp.mp3")
-        #self.game.audio.play_music(-1) 
+        self.game.audio.load_music("swooprandomperse3.mp3")
+        self.game.audio.play_music(-1) 
         # Create an empty save if one is not supplied
         if kwargs.get("save") is None:
             self.save = GameSave()

File FatxFast/scenes/menuscenes.py

View file
     def __init__(self, manager, **kwargs):
         manager.clear()
         super(IntroScene, self).__init__(manager, **kwargs)
-        self.manager.game.audio.load_music("intro_cosmos.mp3")
+        self.manager.game.audio.load_music("burning piano.mp3")
         self.manager.game.audio.play_music(-1) 
     
     def key_pressed(self, key, utf, mod):