<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 cocos <EOL> from cocos . director import director <EOL> from cocos . actions import * <EOL> from cocos . layer import * <EOL> from cocos . scenes import * <EOL> from cocos . sprite import * <EOL> import pyglet <EOL> from pyglet . gl import * <EOL> class BackgroundLayer ( cocos . layer . Layer ) : <EOL> def __init__ ( self ) : <EOL> super ( BackgroundLayer , self ) . __init__ ( ) <EOL> self . img = pyglet . resource . image ( '<STR_LIT>' ) <EOL> def draw ( self ) : <EOL> glColor4ub ( <NUM_LIT:255> , <NUM_LIT:255> , <NUM_LIT:255> , <NUM_LIT:255> ) <EOL> glPushMatrix ( ) <EOL> self . transform ( ) <EOL> self . img . blit ( <NUM_LIT:0> , <NUM_LIT:0> ) <EOL> glPopMatrix ( ) <EOL> def main ( ) : <EOL> director . init ( resizable = True ) <EOL> scene1 = cocos . scene . Scene ( ) <EOL> scene2 = cocos . scene . Scene ( ) <EOL> colorl = ColorLayer ( <NUM_LIT:32> , <NUM_LIT:32> , <NUM_LIT:255> , <NUM_LIT:255> ) <EOL> sprite = Sprite ( '<STR_LIT>' , ( <NUM_LIT> , <NUM_LIT> ) ) <EOL> colorl . add ( sprite ) <EOL> scene1 . add ( BackgroundLayer ( ) , z = <NUM_LIT:0> ) <EOL> scene2 . add ( colorl , z = <NUM_LIT:0> ) <EOL> director . run ( JumpZoomTransition ( scene1 , <NUM_LIT:2> , scene2 ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
