From: adrianna Date: Thu, 8 Sep 2016 22:25:29 +0000 (+0200) Subject: better eyeballs X-Git-Tag: tabakrolletjie-v1.0.0~170^2~1 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=403f74bb5689f3231a1e23b500a09aee35259b57;p=tabakrolletjie.git better eyeballs --- diff --git a/data/images/32/eyeball.png b/data/images/32/eyeball.png index 819e564..01cce3d 100644 Binary files a/data/images/32/eyeball.png and b/data/images/32/eyeball.png differ diff --git a/data/images/32/eyeballB.png b/data/images/32/eyeballB.png new file mode 100644 index 0000000..e5bdde6 Binary files /dev/null and b/data/images/32/eyeballB.png differ diff --git a/data/images/32/eyeballC.png b/data/images/32/eyeballC.png new file mode 100644 index 0000000..2825bd6 Binary files /dev/null and b/data/images/32/eyeballC.png differ diff --git a/data/images/Makefile b/data/images/Makefile index 5b3827c..c085cad 100644 --- a/data/images/Makefile +++ b/data/images/Makefile @@ -2,7 +2,7 @@ VPATH=../../sources/vector TURNIP=seed turnip1 turnip2 turnip3 MOULD_BODY=mouldA mouldB mouldC -MOULD=eyeball +MOULD=eyeball eyeballB eyeballC LIGHT=spotlight lamp laser IMG16=$(MOULD_BODY) diff --git a/sources/vector/eyeball.svg b/sources/vector/eyeball.svg index fdd925a..ad2acb5 100644 --- a/sources/vector/eyeball.svg +++ b/sources/vector/eyeball.svg @@ -61,33 +61,28 @@ id="layer1" transform="translate(0,-698.0315)"> - + + diff --git a/sources/vector/eyeballB.svg b/sources/vector/eyeballB.svg new file mode 100644 index 0000000..49eca58 --- /dev/null +++ b/sources/vector/eyeballB.svg @@ -0,0 +1,88 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/sources/vector/eyeballC.svg b/sources/vector/eyeballC.svg new file mode 100644 index 0000000..3ef0fce --- /dev/null +++ b/sources/vector/eyeballC.svg @@ -0,0 +1,88 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/tabakrolletjie/enemies.py b/tabakrolletjie/enemies.py index 2de7847..48cd9ea 100644 --- a/tabakrolletjie/enemies.py +++ b/tabakrolletjie/enemies.py @@ -52,7 +52,9 @@ class Mould(pymunk.Body): def get_eyeball(self): if not self._eyeball: - self._eyeball = loader.load_image("32", "eyeball.png") + name = random.choice( + ('eyeball.png', 'eyeballB.png', 'eyeballC.png')) + self._eyeball = loader.load_image("32", name) return self._eyeball def tick(self, gamestate, space, moulds):