class Boyd(object):
def __init__(self, gamestate, space):
- seed = Mould(gamestate, space, (275, 300))
- self._moulds = [seed]
+ self._moulds = []
+ for position in gamestate.get_spawn_positions():
+ seed = Mould(gamestate, space, position)
+ self._moulds.append(seed)
self._image = pygame.surface.Surface(SCREEN_SIZE)
self._image = self._image.convert_alpha(pygame.display.get_surface())
self._draw_moulds()
def load_station(self, station):
self._state["station"] = loader.load_station(station)
+
+ def get_spawn_positions(self):
+ return self._state["station"]["config"]["spawn positions"]