Example #1
0
    def __init__(self):
        super( TestLayer, self ).__init__()

        x,y = director.get_window_size()

        self.sprite = Sprite('grossini.png')
        self.sprite.position = 0, y/2
        self.add( self.sprite  )

        self.sprite.do( Lerp("x", 0, x, 10) )
Example #2
0
 def __init__(self):
     super(TestLayer, self).__init__()
     f = TestFigure()
     self.add(f)
     a = Lerp("line_width", 5, 55, 3)
     f.do(Repeat(a + Reverse(a)))