#NEWLINE# def update( self , keys , current_time ) : #NEWLINE# #INDENT# '\n        Check for collisions between game objects.\n        ' #NEWLINE# self . blockers = self . make_blocker_list ( self . static_blockers , self . sprites ) #NEWLINE# self . player . rect . move_ip ( self . player . x_vel , self . player . y_vel ) #NEWLINE# self . check_for_blockers ( ) #NEWLINE# for sprite in self . sprites : #NEWLINE# #INDENT# sprite . rect . move_ip ( sprite . x_vel , sprite . y_vel ) #NEWLINE# #UNINDENT# self . check_for_blockers ( ) #NEWLINE# if ( ( ( self . player . rect . x % 32 ) == 0 ) and ( ( self . player . rect . y % 32 ) == 0 ) ) : #NEWLINE# #INDENT# if ( not ( self . player . state == 'resting' ) ) : #NEWLINE# #INDENT# self . check_for_portal ( ) #NEWLINE# self . check_for_battle ( ) #NEWLINE# #UNINDENT# self . player . begin_resting ( ) #NEWLINE# #UNINDENT# for sprite in self . sprites : #NEWLINE# #INDENT# if ( sprite . state == 'automoving' ) : #NEWLINE# #INDENT# if ( ( ( sprite . rect . x % 32 ) == 0 ) and ( ( sprite . rect . y % 32 ) == 0 ) ) : #NEWLINE# #INDENT# sprite . begin_auto_resting ( )