def update(self):
     if self.wheel_increment != 0:
         if self.hold_time > self.hold_distance:
             if self.hold_distance == 0:
                 self.hold_distance = 30
             elif self.hold_distance == 30:
                 self.hold_distance = 20
             elif self.hold_distance == 20:
                 self.hold_distance = 10
             settingsManager.getSfx().playSound('selectL')
             
             self.wheel.changeSelected(self.wheel_increment)
             
             self.current_color = self.player_num
             self.recolorIcon(True)
             
             self.icon = self.wheel.fighterAt(0).franchise_icon
             self.icon.rect.center = self.get_rect().center
             self.recolorIcon()
             self.hold_time = 0
         else:
             self.hold_time += 1
             
     if self.bg_surface and self.bg_surface.get_alpha() > 128:
         self.bg_surface.set_alpha(self.bg_surface.get_alpha() - 10)
Exemple #2
0
    def update(self):
        if self.wheel_increment != 0:
            if self.hold_time > self.hold_distance:
                if self.hold_distance == 0:
                    self.hold_distance = 30
                elif self.hold_distance == 30:
                    self.hold_distance = 20
                elif self.hold_distance == 20:
                    self.hold_distance = 10
                settingsManager.getSfx().playSound('selectL')

                self.wheel.changeSelected(self.wheel_increment)

                self.current_color = self.player_num
                self.recolorIcon(True)

                self.icon = self.wheel.fighterAt(0).franchise_icon
                self.icon.rect.center = self.get_rect().center
                self.recolorIcon()
                self.hold_time = 0
            else:
                self.hold_time += 1

        if self.bg_surface and self.bg_surface.get_alpha() > 128:
            self.bg_surface.set_alpha(self.bg_surface.get_alpha() - 10)
Exemple #3
0
 def update(self):
     if self.wheelIncrement != 0:
         if self.holdtime > self.holdDistance:
             if self.holdDistance == 0:
                 self.holdDistance = 30
             elif self.holdDistance == 30:
                 self.holdDistance = 20
             elif self.holdDistance == 20:
                 self.holdDistance = 10
             settingsManager.getSfx().playSound('selectL')
             self.wheel.changeSelected(self.wheelIncrement)
             self.holdtime = 0
         else:
             self.holdtime += 1
             
     if self.bgSurface and self.bgSurface.get_alpha() > 128:
         self.bgSurface.set_alpha(self.bgSurface.get_alpha() - 10)