<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> tags = "<STR_LIT>" <EOL> import cocos <EOL> from cocos . director import director <EOL> from cocos . actions import JumpTo , JumpBy <EOL> from cocos . sprite import Sprite <EOL> import pyglet <EOL> class TestLayer ( cocos . layer . Layer ) : <EOL> def __init__ ( self ) : <EOL> super ( TestLayer , self ) . __init__ ( ) <EOL> x , y = director . get_window_size ( ) <EOL> self . sprite = Sprite ( '<STR_LIT>' , ( x // <NUM_LIT:5> , y // <NUM_LIT:3> * <NUM_LIT:2> ) ) <EOL> self . add ( self . sprite ) <EOL> self . sprite . do ( JumpTo ( ( x // <NUM_LIT:5> * <NUM_LIT:4> , <NUM_LIT:100> ) , <NUM_LIT:100> , <NUM_LIT:10> , <NUM_LIT:6> ) ) <EOL> self . sprite2 = Sprite ( '<STR_LIT>' , ( x // <NUM_LIT:5> , y // <NUM_LIT:3> ) ) <EOL> self . add ( self . sprite2 ) <EOL> self . sprite2 . do ( JumpBy ( ( x // <NUM_LIT:5> * <NUM_LIT:4> , <NUM_LIT:100> ) , <NUM_LIT:100> , <NUM_LIT:10> , <NUM_LIT:6> ) ) <EOL> description = """<STR_LIT>""" <EOL> def main ( ) : <EOL> print ( description ) <EOL> director . set_recorder ( <NUM_LIT> , "<STR_LIT>" , <NUM_LIT:6> ) <EOL> director . init ( ) <EOL> test_layer = TestLayer ( ) <EOL> main_scene = cocos . scene . Scene ( test_layer ) <EOL> director . run ( main_scene ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
