PEP8 fixes.
authorSimon Cross <hodgestar@gmail.com>
Sat, 10 Sep 2016 23:41:52 +0000 (01:41 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sat, 10 Sep 2016 23:41:52 +0000 (01:41 +0200)
tabakrolletjie/enemies.py

index e5381c9476b5d3da3c32710a19a7396b9675131a..67f88e72b74a7582a6d577390f722fd71e0a242c 100644 (file)
@@ -101,9 +101,11 @@ class Mould(pymunk.Body):
         if not self._eyeball:
             name = random.choice(
                 ('eyeballA.png', 'eyeballB.png', 'eyeballC.png'))
-            self._eyeball = loader.load_image("32", name,
+            self._eyeball = loader.load_image(
+                "32", name,
                 transform=Overlay(colour=self._transform.colour+(127,)))
-            eyelid = loader.load_image("32", "eyelid.png", transform=self._transform)
+            eyelid = loader.load_image(
+                "32", "eyelid.png", transform=self._transform)
             self._eyeball.blit(eyelid, (0, 0), None)
         return self._eyeball
 
@@ -150,7 +152,9 @@ class Mould(pymunk.Body):
                 moulds.append(child)
                 refresh = True
                 if random.randint(0, 100) < 1:
-                    sound.play_sound("rubber_toy_short%d.ogg" % random.randint(1, 5), volume=0.3)
+                    sound.play_sound(
+                        "rubber_toy_short%d.ogg" % random.randint(1, 5),
+                        volume=0.3)
 
         if self._age in MOULD_STAGES:
             # We grow in size
@@ -174,7 +178,8 @@ class Mould(pymunk.Body):
                                       EAT_TURNIP_FILTER)
             if query:
                 query[0].shape.body.turnip.eaten = True
-                sound.play_sound("eating_chips_%d.ogg" % random.randint(1, 3), volume=0.8)
+                sound.play_sound(
+                    "eating_chips_%d.ogg" % random.randint(1, 3), volume=0.8)
         return refresh
 
     def damage(self, light, space, moulds):