Fix issue wit color
parent
85386092c8
commit
e98f94575b
|
@ -10,7 +10,7 @@ class Avocado:
|
||||||
# Set up our instance variables
|
# Set up our instance variables
|
||||||
self.screen = screen
|
self.screen = screen
|
||||||
self.screen_width, self.screen_height = screen.get_size()
|
self.screen_width, self.screen_height = screen.get_size()
|
||||||
color = properties['color']
|
self.color = properties['color']
|
||||||
self.w, self.y = properties['size']
|
self.w, self.y = properties['size']
|
||||||
self.target = target
|
self.target = target
|
||||||
self.boundaries = boundaries
|
self.boundaries = boundaries
|
||||||
|
@ -18,7 +18,7 @@ class Avocado:
|
||||||
|
|
||||||
# Initialize the image
|
# Initialize the image
|
||||||
self.i = pygame.image.load(filename).convert_alpha()
|
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.image = pygame.transform.scale(self.i, (self.w, self.y))
|
||||||
self.rect = self.image.get_rect()
|
self.rect = self.image.get_rect()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue