code: def reset(self):
          
          self.scene = cocos.scene.Scene()
          self.z = 0
  
          palette = config.settings['view']['palette']
          #Player.palette = palette
          r, g, b = palette['bg']
          self.scene.add(cocos.layer.ColorLayer(r, g, b, 255), z=self.z)
          self.z += 1
          message_layer = MessageLayer()
          self.scene.add(message_layer, z=self.z)
          self.z += 1
          self.world_layer = WorldLayer(self.mode_id, fn_show_message=message_layer.show_message)
          self.scene.add(self.world_layer, z=self.z)
          self.z += 1
  
          self.director._set_scene(self.scene)
  
          # Step once to refresh before `act`
          self.step()
  
          # TODO: Reset to `ones`?
          return self.world_layer.get_state()
docs: Attach a new engine to director