changed positioning so its better and more central
This commit is contained in:
parent
76b229f40b
commit
64eb14bed8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Reference in a new issue