예제 #1
0
 def run(self):
     self.best_score = self.app.store.get('score')[
         'best']  # get the best score saved
     self.ids.label_best.text = 'Best score: ' + str(
         self.best_score)  #show it
     if platform(
     ) == 'android':  # if we are using android, we can show an ADs
         if (random.randint(
                 0, 5) == 1):  # get a random and show a ads in the menu
             revmob.show_popup()
예제 #2
0
 def new_game(self):
     if use_ads:
         revmob.show_popup()
     self.content.clear_widgets()
     self.content.add_widget(Image(source='assets/graphics/ui/loading.png', size=Window.size, allow_stretch=True))
     Clock.schedule_once(self.post_splash)
예제 #3
0
 def run(self):
     self.best_score = self.app.store.get('score')['best'] # get the best score saved
     self.ids.label_best.text = 'Best score: ' + str(self.best_score) #show it
     if platform() == 'android': # if we are using android, we can show an ADs
         if(random.randint(0, 5) == 1): # get a random and show a ads in the menu
             revmob.show_popup()
예제 #4
0
 def on_pause(self):
     self.sound.stop() # the stop the sound
     Clock.unschedule(self.check_sound)
     if platform() == 'android': #if on android, we load an ADs and show it
         revmob.show_popup()
     return True
예제 #5
0
 def show_popup(instance):
     revmob.show_popup()
예제 #6
0
 def on_pause(self):
     self.sound.stop()  # the stop the sound
     Clock.unschedule(self.check_sound)
     if platform() == 'android':  #if on android, we load an ADs and show it
         revmob.show_popup()
     return True