def __init__(self, gamelayout, swipe_right, index, *args, **kwargs): super( LevelButton, self).__init__(*args, **kwargs) self.gamelayout = gamelayout self.swipe_right = swipe_right self.index = index self.custom_texture = load_texture( "Resources/{}.png".format( index ) ) self.lock_screen = Rectangle() self.lock_color = Color( 0,0,0,0 ) self.canvas.add( self.lock_color ) self.canvas.add( self.lock_screen )
def get_levels_texture( self ): return utils.load_texture( 'Resources/levels.png' )
def get_back_texture( self ): return utils.load_texture( 'Resources/back.png' )
def get_pause_down_texture( self ): return utils.load_texture( 'Resources/pause_down.png' )
def get_play_normal_texture( self ): return utils.load_texture( 'Resources/play_normal.png' )
def get_menu_texture( self ): return utils.load_texture( 'Resources/menu.png' )