def tick(self, gamestate, space, moulds):
"""Grow and / or Die"""
def tick(self, gamestate, space, moulds):
"""Grow and / or Die"""
# we regain a health every tick, so we heal in the dark
if self._health < MAX_HEALTH:
# we regain a health every tick, so we heal in the dark
if self._health < MAX_HEALTH:
self._moulds = []
for position in gamestate.get_spawn_positions():
seed = Mould(gamestate, space, position)
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._moulds.append(seed)
self._image = pygame.surface.Surface(SCREEN_SIZE)
self._image = self._image.convert_alpha(pygame.display.get_surface())