PEP8 fixes.
authorSimon Cross <hodgestar@gmail.com>
Sat, 10 Sep 2016 13:09:01 +0000 (15:09 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sat, 10 Sep 2016 13:09:01 +0000 (15:09 +0200)
tabakrolletjie/obstacles.py

index 7096424192dffe357beff096379fcec1f4ca6971..071ca9f935c1d4cd87fec3de82e13bf6ca0f82e9 100644 (file)
@@ -89,7 +89,9 @@ class Shrub(BaseObstacle):
         for (x, y, r) in shrublets:
             vec = Vector2(0, int(r))
             STEPS = 18
-            vertices = [vec.rotate(angle) + (x, y) for angle in range(0, 360, 360/STEPS)]
+            vertices = [
+                vec.rotate(angle) + (x, y)
+                for angle in range(0, 360, 360/STEPS)]
             vertices = [(v.x, v.y) for v in vertices]
 
             self.shapes.append(pymunk.Poly(self.body, vertices))
@@ -99,15 +101,16 @@ class Shrub(BaseObstacle):
     def get_image(self):
         if self._image is None:
             self._image = pygame.surface.Surface(SCREEN_SIZE).convert_alpha()
-            self._image.fill((0,0,0,0))
-                
+            self._image.fill((0, 0, 0, 0))
+
             for (x, y, r) in self.shrublets:
                 centre = pymunk.pygame_util.to_pygame((x, y), self._image)
                 pygame.draw.circle(self._image, (255, 255, 255), centre, r)
 
-            shrub_texture = loader.load_image("textures", "shrub.png").convert_alpha()
+            shrub_texture = loader.load_image(
+                "textures", "shrub.png").convert_alpha()
             self._image.blit(shrub_texture, (0, 0), None, pgl.BLEND_RGBA_MULT)
-            
+
         return self._image
 
     def render(self, surface):