Exemplo n.º 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()
Exemplo n.º 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)
Exemplo n.º 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()
Exemplo n.º 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
Exemplo n.º 5
0
 def show_popup(instance):
     revmob.show_popup()
Exemplo n.º 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