From: adrianna Date: Thu, 8 Sep 2016 22:12:24 +0000 (+0200) Subject: tweaked eyeball; made eyeballs less frequent; fixed mould transparency and corrected... X-Git-Tag: tabakrolletjie-v1.0.0~172^2 X-Git-Url: https://git.ctpug.org.za/?p=tabakrolletjie.git;a=commitdiff_plain;h=7694b061e2b612e15dd3005a8e71a289b7f4292e tweaked eyeball; made eyeballs less frequent; fixed mould transparency and corrected blend mode --- diff --git a/data/images/32/eyeball.png b/data/images/32/eyeball.png index 68693a3..819e564 100644 Binary files a/data/images/32/eyeball.png and b/data/images/32/eyeball.png differ diff --git a/sources/vector/eyeball.svg b/sources/vector/eyeball.svg index 83027f4..fdd925a 100644 --- a/sources/vector/eyeball.svg +++ b/sources/vector/eyeball.svg @@ -31,8 +31,8 @@ inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="false" - inkscape:window-width="1264" - inkscape:window-height="720" + inkscape:window-width="1818" + inkscape:window-height="1055" inkscape:window-x="102" inkscape:window-y="0" inkscape:window-maximized="1"> @@ -51,7 +51,7 @@ image/svg+xml - + @@ -60,38 +60,34 @@ inkscape:groupmode="layer" id="layer1" transform="translate(0,-698.0315)"> - - - - - + + + diff --git a/tabakrolletjie/enemies.py b/tabakrolletjie/enemies.py index 104abd1..2de7847 100644 --- a/tabakrolletjie/enemies.py +++ b/tabakrolletjie/enemies.py @@ -104,7 +104,7 @@ class Mould(pymunk.Body): 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 @@ -132,7 +132,7 @@ class Boyd(object): 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): @@ -165,4 +165,4 @@ class Boyd(object): 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)