refresh = True
self._img = None # invalidate cached image
- if self._age > 20 and random.randint(0, 100) < 1:
+ if self._age > 20 and random.randint(0, 500) < 1:
# Maybe we grow an eyeball
self.has_eyeball = True
seed = Mould(gamestate, space, (350, 370))
self._moulds = [seed]
self._image = pygame.surface.Surface(SCREEN_SIZE)
- self._image.convert_alpha(pygame.display.get_surface())
+ self._image = self._image.convert_alpha(pygame.display.get_surface())
self._draw_moulds()
def _draw_moulds(self):
def render(self, surface):
"""Draw ourselves"""
- surface.blit(self._image, (0, 0), None, pgl.BLEND_RGBA_ADD)
+ surface.blit(self._image, (0, 0), None, 0)