<s> from __future__ import division , print_function , unicode_literals <EOL> import sys <EOL> import os <EOL> sys . path . insert ( <NUM_LIT:0> , os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT:..>' ) ) <EOL> testinfo = "<STR_LIT>" <EOL> tags = "<STR_LIT>" <EOL> import pyglet <EOL> import cocos <EOL> from cocos . actions import ScaleTo , MoveTo , Accelerate <EOL> from cocos . sprite import Sprite <EOL> from cocos . director import director <EOL> from cocos . scene import Scene <EOL> class Bg ( cocos . layer . Layer ) : <EOL> def __init__ ( self ) : <EOL> super ( Bg , self ) . __init__ ( ) <EOL> self . image = pyglet . resource . image ( '<STR_LIT>' ) <EOL> def on_enter ( self ) : <EOL> super ( Bg , self ) . on_enter ( ) <EOL> sprite = Sprite ( self . image ) <EOL> self . add ( sprite ) <EOL> sprite . position = <NUM_LIT> , <NUM_LIT> <EOL> sprite . do ( ScaleTo ( <NUM_LIT:4> , <NUM_LIT:0> ) ) <EOL> action = MoveTo ( ( <NUM_LIT> , <NUM_LIT> ) , <NUM_LIT:4> ) | ( ScaleTo ( <NUM_LIT:2> , <NUM_LIT:2> ) + ScaleTo ( <NUM_LIT:4> , <NUM_LIT:2> ) ) <EOL> sprite . do ( action ) <EOL> def main ( ) : <EOL> director . init ( ) <EOL> director . run ( Scene ( Bg ( ) ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
