From e98f94575b43f9fdbef32e3134234b424e092d58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Sun, 31 Aug 2014 11:52:40 +0200 Subject: [PATCH] Fix issue wit color --- avocado.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/avocado.py b/avocado.py index bc34929..defcc3f 100644 --- a/avocado.py +++ b/avocado.py @@ -10,7 +10,7 @@ class Avocado: # Set up our instance variables self.screen = screen self.screen_width, self.screen_height = screen.get_size() - color = properties['color'] + self.color = properties['color'] self.w, self.y = properties['size'] self.target = target self.boundaries = boundaries @@ -18,7 +18,7 @@ class Avocado: # Initialize the image self.i = pygame.image.load(filename).convert_alpha() - operations.color_surface(self.i, color) + operations.color_surface(self.i, self.color) self.image = pygame.transform.scale(self.i, (self.w, self.y)) self.rect = self.image.get_rect()