<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 . director import director <EOL> from cocos . actions import * <EOL> from cocos . layer import * <EOL> from pyglet import gl <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> gl . glColor4ub ( <NUM_LIT:255> , <NUM_LIT:255> , <NUM_LIT:255> , <NUM_LIT:255> ) <EOL> gl . glPushMatrix ( ) <EOL> self . transform ( ) <EOL> self . img . blit ( <NUM_LIT:0> , <NUM_LIT:0> ) <EOL> gl . glPopMatrix ( ) <EOL> def main ( ) : <EOL> director . init ( resizable = True ) <EOL> main_scene = cocos . scene . Scene ( ) <EOL> main_scene . add ( BackgroundLayer ( ) , z = <NUM_LIT:0> ) <EOL> e = SkewHorizontal ( duration = <NUM_LIT:1> ) <EOL> main_scene . do ( e ) <EOL> director . run ( main_scene ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
