changed movement of targets
This commit is contained in:
parent
11ff4cd502
commit
7475a69d2a
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ class Target(pygame.sprite.Sprite):
|
||||||
self.height = height
|
self.height = height
|
||||||
self.image = pygame.transform.scale(textures.get_target_texture(), (self.width, self.height))
|
self.image = pygame.transform.scale(textures.get_target_texture(), (self.width, self.height))
|
||||||
self.rect = self.image.get_rect()
|
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.rect.x, self.rect.y = (x+(self.width/2)),(y+(self.width/2)) # centres co-ordinates
|
||||||
self.type = "NORMAL"
|
self.type = "NORMAL"
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ class Target(pygame.sprite.Sprite):
|
||||||
self.rect.x += self.speed
|
self.rect.x += self.speed
|
||||||
|
|
||||||
def drop(self):
|
def drop(self):
|
||||||
self.rect.y += 17
|
self.rect.y += 13
|
||||||
self.speed *= -1
|
self.speed *= -1
|
||||||
|
|
||||||
def set_position(self, x, y, center=False):
|
def set_position(self, x, y, center=False):
|
||||||
|
|
Reference in a new issue