<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> from cocos . director import director <EOL> from cocos . scene import Scene <EOL> from cocos . sprite import * <EOL> from cocos . utils import SequenceScene <EOL> from cocos . text import * <EOL> from cocos . layer import * <EOL> import cocos . actions as ac <EOL> from pyglet import font <EOL> from pyglet . window import key <EOL> def pop_scene ( ) : <EOL> director . pop ( ) <EOL> def push_sequence_scene ( ) : <EOL> scene_blue = Scene ( ) <EOL> layer_blue = ColorLayer ( <NUM_LIT:32> , <NUM_LIT:32> , <NUM_LIT:255> , <NUM_LIT:255> ) <EOL> scene_blue . add ( layer_blue , z = <NUM_LIT:0> ) <EOL> scene_blue . do ( ac . Delay ( <NUM_LIT:2> ) + ac . CallFunc ( pop_scene ) ) <EOL> scene_red = Scene ( ) <EOL> layer_red = ColorLayer ( <NUM_LIT:255> , <NUM_LIT:32> , <NUM_LIT:0> , <NUM_LIT:255> ) <EOL> scene_red . add ( layer_red , z = <NUM_LIT:0> ) <EOL> scene_red . do ( ac . Delay ( <NUM_LIT:2> ) + ac . CallFunc ( pop_scene ) ) <EOL> director . push ( SequenceScene ( scene_blue , scene_red ) ) <EOL> description = """<STR_LIT>""" <EOL> def main ( ) : <EOL> print ( description ) <EOL> director . init ( resizable = True , width = <NUM_LIT> , height = <NUM_LIT> ) <EOL> scene_green = Scene ( ) <EOL> layer_green = ColorLayer ( <NUM_LIT:32> , <NUM_LIT:255> , <NUM_LIT:0> , <NUM_LIT:255> ) <EOL> scene_green . add ( layer_green ) <EOL> scene_green . do ( ac . Delay ( <NUM_LIT> ) + ac . CallFunc ( push_sequence_scene ) ) <EOL> pyglet . clock . schedule ( lambda dt : None ) <EOL> director . run ( scene_green ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
