From 7694b061e2b612e15dd3005a8e71a289b7f4292e Mon Sep 17 00:00:00 2001 From: adrianna Date: Fri, 9 Sep 2016 00:12:24 +0200 Subject: [PATCH] tweaked eyeball; made eyeballs less frequent; fixed mould transparency and corrected blend mode --- data/images/32/eyeball.png | Bin 865 -> 838 bytes sources/vector/eyeball.svg | 68 +++++++++++++++++-------------------- tabakrolletjie/enemies.py | 6 ++-- 3 files changed, 35 insertions(+), 39 deletions(-) diff --git a/data/images/32/eyeball.png b/data/images/32/eyeball.png index 68693a3c7f5143cfee6bc2bc9f065dc6c832f494..819e5641dde26ded33920e0ec658e7ec59df7dde 100644 GIT binary patch delta 740 zcmV6>+5N-+p$}E4>*47e<*VmDr9;B)1 zf;`!Zi;=cABoI(@R#y?Tnb%kGTp5~3gs6z}x3{6I3v?Y04pNV|T0zsGyBq4`_A3I> zDA7y<0C6dpn?p)Vk&+Umyj(>fJ_S`(DlMtfH8quG3IIcYKknEz-GYd&qleGSi^ZZWKVN+p7J}Wb{QZ3h1}`rV4ui*oP8LN90Hcu? zBO{j|qL}HrdW=d+RCJR2olXKK6IEG}$6&KD=)HFWci2NKm z4hIugi3kLc`T4{)x0|5D!8o^B5p6aGhKKQoLS5<0vD1nFeCO99&q$%kM0HCGAL{DV z4@pG@j{vr|I9^)9=W?O1tnhYsm+#l!StbJFU;t{$%6Ja2v%?Qy6NqHF-aYPdhw&HE W#8{wFokiXN0000NRwe0$A4=pr6RW6m;`f{+H7hAVeGPR#_(LX zU~~%-?AFCg9qW`9VW~lvu6YP4s++i5k|6WjW)W?J_JI_clH%Ij)8U)A%}v{~lm6j> z_kExDeg6OFec$hWJ~+f74mu2Vt}_9hb~|SQmX=5Wi$Lzb3V*O#aru1Qb-U>b1aLZ? z90y3HSf8086^o(H&T{AbcRtlBWKW@r!o%@#v|J7mschLSGB$?h_cKy!a=VfTgG??i zk|`#8{TfN9%S9X!5sSp*hDD^kDD}Sy~h^sCa$13?F5r{^&dN%-bq1{Al>-D3d5Z7!rI_ehS^Ko}zfHURe z&CPJ~B>emd6BD3+6!x-NXBZeTG<&_=t5<-jtBWq9ai^oP5zK{T!(mum%>f_FX2md> zgw9U73kqu%(5WamD>+tIVSQb1M!)vejwBrl@3zkY>K2vk)+ z_e$`1Kv7_D5ZvzVaS_Pp$=A980Nt-%u_l7Nd4n`HA*W9xEiL*Ew6$$#-QJF@tWxPSNHstDuI5V5U5$)s)@8+w0b1-W=p7vS+!e;se#B1)Z?a8p%LbA|Habn4d7 zp!ZLmfSSm$L(+5`25$I x)gqt>M!;paa}Ho>i7)8IV6)D6hd9Im#vg?L>UIUq%boxL002ovPDHLkV1j?Vd*A>7 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) -- 2.34.1