#NEWLINE# def advance( self , t ) : #NEWLINE# #INDENT# camera . advance ( self , t ) #NEWLINE# entity . advance ( self , t ) #NEWLINE# dist = ( ( WALK_SPEED * t ) / 1000.0 ) #NEWLINE# ( x , y , z ) = ( self . x , self . y , self . z ) #NEWLINE# if ( 'w' in self . keys_down ) : #NEWLINE# #INDENT# ( x , z ) = self . move_forward ( dist , x , z ) #NEWLINE# #UNINDENT# if ( 's' in self . keys_down ) : #NEWLINE# #INDENT# ( x , z ) = self . move_forward ( ( - dist ) , x , z ) #NEWLINE# #UNINDENT# if ( 'a' in self . keys_down ) : #NEWLINE# #INDENT# ( x , z ) = self . move_sideways ( dist , x , z ) #NEWLINE# #UNINDENT# if ( 'd' in self . keys_down ) : #NEWLINE# #INDENT# ( x , z ) = self . move_sideways ( ( - dist ) , x , z ) #NEWLINE# #UNINDENT# if ( ' ' in self . keys_down ) : #NEWLINE# #INDENT# if self . world . physics_on : #NEWLINE# #INDENT# if self . physically_supported ( ) : #NEWLINE# #INDENT# self . jump ( ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# y = self . move_up ( dist , y ) #NEWLINE# #UNINDENT# #UNINDENT# if ( 'n' in self . keys_down ) : #NEWLINE# #INDENT# if ( not self . world . physics_on ) : #NEWLINE# #INDENT# y = self . move_up ( ( - dist ) , y ) #NEWLINE# #UNINDENT# #UNINDENT# self . try_move ( x , y , z )