projects
/
tabakrolletjie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e544ee1
)
Fix pep8.
author
Simon Cross
<hodgestar@gmail.com>
Sat, 10 Sep 2016 11:29:04 +0000
(13:29 +0200)
committer
Simon Cross
<hodgestar@gmail.com>
Sat, 10 Sep 2016 11:29:04 +0000
(13:29 +0200)
tabakrolletjie/obstacles.py
patch
|
blob
|
history
diff --git
a/tabakrolletjie/obstacles.py
b/tabakrolletjie/obstacles.py
index 81dd9cec8d937c64a649f8067391ad095f9c92ff..bae1c1dac23c0d7da1f6710d81c856a0c1b30c30 100644
(file)
--- a/
tabakrolletjie/obstacles.py
+++ b/
tabakrolletjie/obstacles.py
@@
-63,17
+63,18
@@
class Wall(BaseObstacle):
def get_image(self):
if self._image is None:
self._image = pygame.surface.Surface(SCREEN_SIZE).convert_alpha()
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 shape in self.shapes:
pygame_poly = [
pymunk.pygame_util.to_pygame(v, self._image) for v in
shape.get_vertices()]
pygame.draw.polygon(self._image, (255, 255, 255), pygame_poly)
for shape in self.shapes:
pygame_poly = [
pymunk.pygame_util.to_pygame(v, self._image) for v in
shape.get_vertices()]
pygame.draw.polygon(self._image, (255, 255, 255), pygame_poly)
-
- wall_texture = loader.load_image("textures", "stone.png").convert_alpha()
+
+ wall_texture = loader.load_image(
+ "textures", "stone.png").convert_alpha()
self._image.blit(wall_texture, (0, 0), None, pgl.BLEND_RGBA_MULT)
self._image.blit(wall_texture, (0, 0), None, pgl.BLEND_RGBA_MULT)
-
+
return self._image
def render(self, surface):
return self._image
def render(self, surface):