示例#1
0
 def update(self):
     self.navigation.gauge.is_update = True
     if not Key.is_press(K_SPACE):
         self.press = False
     if not self.press and Key.is_press(K_SPACE):
         Sound(u'../resources/sound/pause.wav').play()
         BGM.set_volume(1)
         return 'main'
示例#2
0
 def ready(self, *args, **kwargs):
     BGM.set_volume(0.4)
     self.press = True
     Mouse.show_cursor()
     self.string = Animation(u'../resources/image/main/strings.png',AnimationInfo(3,0,0,360,210,0),x=220, y=195)
     self.sprites.add(self.string)