def show_credits(self): msg = MsgBox(text="This game is created by software engineer Niko Skrypnik and "\ "designers from Sunny Studio and powered with Kivy - open source"\ "framework for creating cross-platform applications on Python", font_size='23dp', type='info', size_hint=(0.95, 0.95), buttons_padding='5dp', ) msg.open()
def show_help(self): msg = MsgBox(text="Path of the Rabbit game is the simple game"\ " with indirect control where you should help the main hero(Rabbit)"\ " to achieve the Holly Carrot. You should help him to avoid meet with"\ " cruel and dangerous Hare which wants to kill our hero.", font_size='23dp', type='info', size_hint=(0.95, 0.95), buttons_padding='5dp', ) msg.open()
def go_to_menu(self,btn): GameContext.game.pause(self.button_play) def _yes_callback(): _cb = GameContext.app.back_to_menu GameContext.app.fade_to_black(_cb) msg = MsgBox(text="You are about to go to main menu.\nAre you sure?", font_size='34dp', type='question', size_hint=(0.9, 0.8), buttons_padding='40dp', no_callback=lambda: GameContext.game.resume(self.button_play), yes_callback=_yes_callback ) msg.open()