1
Fork 0

changed positioning so its better and more central

This commit is contained in:
Jake Howard 2015-05-10 13:12:51 +01:00
parent 76b229f40b
commit 64eb14bed8

View file

@ -9,8 +9,8 @@ class Bullet(pygame.sprite.Sprite):
self.image = pygame.Surface((self.width, self.height))
self.image.fill((255,255,255))
self.rect = self.image.get_rect()
self.rect.x = parent.rect.x + parent.width/2
self.rect.y = parent.rect.y + parent.width/2
self.rect.x = parent.rect.x + parent.width/2 - self.width/2
self.rect.y = parent.rect.y + parent.height/2
self.speed = 5
self.type = "PLAYER"
self.parent = parent