#NEWLINE# def mode_start( self , **kwargs ) : #NEWLINE# #INDENT# self . add_mode_event_handler ( 'enable_free_play' , self . enable_free_play ) #NEWLINE# self . add_mode_event_handler ( 'enable_credit_play' , self . enable_credit_play ) #NEWLINE# self . add_mode_event_handler ( 'toggle_credit_play' , kwargs . toggle_credit_play ) #NEWLINE# self . add_mode_event_handler ( 'slam_tilt' , self . clear_all_credits ) #NEWLINE# if self . credits_config [ 'free_play' ] : #NEWLINE# #INDENT# self . enable_free_play ( post_event = False ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _calculate_credit_units ( ) #NEWLINE# self . _calculate_pricing_tiers ( ) #NEWLINE# self . enable_credit_play ( post_event = False )