Пример #1
0
    def __init__(self):
        super( TestLayer, self ).__init__()

        x,y = director.get_window_size()

        self.sprite = Sprite( 'grossini.png', (x//2, y//2) )
        self.add( self.sprite )
        self.sprite.do( FadeTo(0, 5 ) )

        self.sprite2 = Sprite('grossini.png',  (x//4*3,y//2), opacity=0)
        self.add( self.sprite2 )
        self.sprite2.do( FadeTo(255, 5 ) )