Ejemplo n.º 1
0
 def get_bike():
     # print('[WARNING] Try to get a game object from DOM! get_bike')
     return get_game_screen().ids.bike if get_game_screen() else None
Ejemplo n.º 2
0
 def get_background():
     # print('[WARNING] Try to get a game object from DOM! get_background_image_animation')
     return get_game_screen().ids.background if get_game_screen() else None
Ejemplo n.º 3
0
 def get_start():
     try:
         return get_game_screen().ids.start if get_game_screen() else None
     except AttributeError:
         print('[WARNING] Try to get a game object from DOM! get_start.')
Ejemplo n.º 4
0
 def get_finish():
     try:
         return get_game_screen().ids.finish if get_game_screen() else None
     except AttributeError:
         print('[WARNING] Try to get a game object from DOM! get_finish')
Ejemplo n.º 5
0
 def get_rock():
     # TODO: TEMP print('[WARNING] Try to get a game object from DOM! get_rock')
     return get_game_screen().ids.get('rock') if get_game_screen() else None
Ejemplo n.º 6
0
 def get_road():
     # print('[WARNING] Try to get a game object from DOM! get_road')
     return get_game_screen().ids.road if get_game_screen() else None
Ejemplo n.º 7
0
 def get_status_bar():
     # print('[WARNING] Try to get a game object from DOM! get_status_bar')
     return get_game_screen().ids.status_bar if get_game_screen() else None
Ejemplo n.º 8
0
 def get_scene():
     # print('[WARNING] Try to get a game object from DOM! get_status_bar')
     return get_game_screen()
Ejemplo n.º 9
0
 def get_right_btn(self):
     game_screen = get_game_screen()
     if game_screen:
         return game_screen.ids.right_btn_wrap.children[0]