Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/person.py
diff options
context:
space:
mode:
Diffstat (limited to 'person.py')
-rw-r--r--person.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/person.py b/person.py
index d8ed55e..3edd178 100644
--- a/person.py
+++ b/person.py
@@ -10,12 +10,12 @@ class Person:
self.unit = unit
self.speed = speed
self.image = pygame.image.load(persons[randint(0, person_number - 1)])
- image_rect = self.image.get_rect()
+ self.image_rect = self.image.get_rect()
size_reduction = 20*unit
- self.collision_rect = pygame.Rect(image_rect.left + size_reduction, \
- image_rect.top + size_reduction, \
- image_rect.width - size_reduction, \
- image_rect.height - size_reduction)
+ self.collision_rect = pygame.Rect( self.image_rect.left + size_reduction, \
+ self.image_rect.top + size_reduction, \
+ self.image_rect.width - size_reduction, \
+ self.image_rect.height - size_reduction)
#self.position = [ 0, randint(0, screen_h -1)]
self.position = [ 0, randint(75, screen_h - 75)]