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()
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)
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()
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
def show_popup(instance): revmob.show_popup()