From 64eb14bed8fd265f0f9af565f239fbc9e3b988e7 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 10 May 2015 13:12:51 +0100 Subject: [PATCH] changed positioning so its better and more central --- bullet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bullet.py b/bullet.py index ab4ebe2..4ecd394 100644 --- a/bullet.py +++ b/bullet.py @@ -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