1
Fork 0

changed movement of targets

This commit is contained in:
Jake Howard 2015-05-12 22:45:02 +01:00
parent 11ff4cd502
commit 7475a69d2a

View file

@ -9,7 +9,7 @@ class Target(pygame.sprite.Sprite):
self.height = height
self.image = pygame.transform.scale(textures.get_target_texture(), (self.width, self.height))
self.rect = self.image.get_rect()
self.speed = 7
self.speed = 5
self.rect.x, self.rect.y = (x+(self.width/2)),(y+(self.width/2)) # centres co-ordinates
self.type = "NORMAL"
@ -17,7 +17,7 @@ class Target(pygame.sprite.Sprite):
self.rect.x += self.speed
def drop(self):
self.rect.y += 17
self.rect.y += 13
self.speed *= -1
def set_position(self, x, y, center=False):