#NEWLINE# def __init__( self ) : #NEWLINE# #INDENT# super ( TestLayer , self ) . __init__ ( ) #NEWLINE# ( x , y ) = director . get_window_size ( ) #NEWLINE# self . sprite = Sprite ( 'grossini.png' , ( 0 , ( x // 2 ) ) ) #NEWLINE# self . add ( self . sprite ) #NEWLINE# mov = AccelDeccel ( MoveBy ( ( x , 0 ) , 4 ) ) #NEWLINE# self . sprite . do ( Repeat ( ( mov + Reverse ( mov ) ) ) )