nmmo.lib.spawn module#
- class nmmo.lib.spawn.SequentialLoader(config)#
Bases:
object
config.PLAYER_LOADER that spreads out agent populations
- nmmo.lib.spawn.spawn_concurrent(config, realm)#
Generates spawn positions for new agents
Evenly spaces agents around the borders of the square game map
- Returns:
tuple(int, int):
- position:
The position (row, col) to spawn the given agent
- nmmo.lib.spawn.spawn_continuous(config)#
Generates spawn positions for new agents
Randomly selects spawn positions around the borders of the square game map
- Returns:
tuple(int, int):
- position:
The position (row, col) to spawn the given agent