original_docstring: Initialize the game after the player spawns / respawns. Be sure that
          properties from the previous life are not considered in this one.
          
docstring: Initialize the game after the player spawns / respawns. Be sure that
  properties from the previous life are not considered in this one.
docstring_tokens: Initialize the game after the player spawns / respawns . Be sure that properties from the previous life are not considered in this one .
code: def initialize_game(self):
          """Initialize the game after the player spawns / respawns. Be sure that
          properties from the previous life are not considered in this one.
          """
          # generate buffers
          game_state = self.game.get_state()
          self._screen_buffer = game_state.screen_buffer
          self._depth_buffer = game_state.depth_buffer
          self._labels_buffer = game_state.labels_buffer
          self._labels = game_state.labels
  
          # actor properties
          self.prev_properties = None
          self.properties = None
  
          # advance a few steps to avoid bugs due
          # to initial weapon changes in ACS
          self.game.advance_action(SKIP_INITIAL_ACTIONS)
          self.update_game_variables()
  
          # if there are bots in the game, and if this is a new game
          self.update_bots()
code_tokens: def initialize_game ( self ) : game_state = self . game . get_state ( ) self . _screen_buffer = game_state . screen_buffer self . _depth_buffer = game_state . depth_buffer self . _labels_buffer = game_state . labels_buffer self . _labels = game_state . labels self . prev_properties = None self . properties = None self . game . advance_action ( SKIP_INITIAL_ACTIONS ) self . update_game_variables ( ) self . update_bots ( )
short_docstring: Initialize the game after the player spawns / respawns.
short_docstring_tokens: Initialize the game after the player spawns / respawns .
comment: """Initialize the game after the player spawns / respawns. Be sure that
          properties from the previous life are not considered in this one.
          """$SEP$# generate buffers$SEP$# actor properties$SEP$# advance a few steps to avoid bugs due$SEP$# to initial weapon changes in ACS$SEP$# if there are bots in the game, and if this is a new game