<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> import cocos <EOL> from cocos . actions import * <EOL> class HelloWorld ( cocos . layer . ColorLayer ) : <EOL> def __init__ ( self ) : <EOL> super ( HelloWorld , self ) . __init__ ( <NUM_LIT:64> , <NUM_LIT:64> , <NUM_LIT> , <NUM_LIT:255> ) <EOL> label = cocos . text . Label ( '<STR_LIT>' , <EOL> font_name = '<STR_LIT>' , <EOL> font_size = <NUM_LIT:32> , <EOL> anchor_x = '<STR_LIT>' , anchor_y = '<STR_LIT>' ) <EOL> label . position = <NUM_LIT> , <NUM_LIT> <EOL> self . add ( label ) <EOL> sprite = cocos . sprite . Sprite ( '<STR_LIT>' ) <EOL> sprite . position = <NUM_LIT> , <NUM_LIT> <EOL> sprite . scale = <NUM_LIT:3> <EOL> self . add ( sprite , z = <NUM_LIT:1> ) <EOL> scale = ScaleBy ( <NUM_LIT:3> , duration = <NUM_LIT:2> ) <EOL> label . do ( Repeat ( scale + Reverse ( scale ) ) ) <EOL> sprite . do ( Repeat ( Reverse ( scale ) + scale ) ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> cocos . director . director . init ( ) <EOL> hello_layer = HelloWorld ( ) <EOL> hello_layer . do ( RotateBy ( <NUM_LIT> , duration = <NUM_LIT:10> ) ) <EOL> main_scene = cocos . scene . Scene ( hello_layer ) <EOL> cocos . director . director . run ( main_scene ) </s>
