<s> import pg <EOL> class Window ( pg . Window ) : <EOL> def setup ( self ) : <EOL> self . wasd = pg . WASD ( self , speed = <NUM_LIT:4> ) <EOL> self . wasd . look_at ( ( - <NUM_LIT:3> , <NUM_LIT:1> , - <NUM_LIT:6> ) , ( <NUM_LIT:0> , <NUM_LIT:0> , - <NUM_LIT:2> ) ) <EOL> self . context = pg . Context ( pg . DirectionalLightProgram ( ) ) <EOL> self . context . ambient_color = ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) <EOL> self . context . light_color = ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) <EOL> self . context . use_texture = True <EOL> self . context . sampler = pg . Texture ( <NUM_LIT:0> , '<STR_LIT>' ) <EOL> self . mesh = pg . OBJ ( '<STR_LIT>' ) . center ( ) . smooth_normals ( ) <EOL> def update ( self , t , dt ) : <EOL> matrix = pg . Matrix ( ) <EOL> matrix = self . wasd . get_matrix ( matrix ) <EOL> matrix = matrix . perspective ( <NUM_LIT> , self . aspect , <NUM_LIT> , <NUM_LIT:100> ) <EOL> self . context . matrix = matrix <EOL> self . context . camera_position = self . wasd . position <EOL> def draw ( self ) : <EOL> self . clear ( ) <EOL> self . mesh . draw ( self . context ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> pg . run ( Window ) </s>
