From 0bc944c28402cd5e7ad888b0a84ab23db214b4bf Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 12 May 2015 22:43:41 +0100 Subject: [PATCH] Changed size of objects --- bullet.py | 4 ++-- player.py | 2 +- target.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bullet.py b/bullet.py index 94ec4fc..9e66eaf 100644 --- a/bullet.py +++ b/bullet.py @@ -4,8 +4,8 @@ import pygame class Bullet(pygame.sprite.Sprite): def __init__(self, parent, textures): super().__init__() - self.width = 4 - self.height = 10 + self.width = 6 + self.height = 14 self.image = pygame.transform.scale(textures.get_texture("BULLET"), (self.width, self.height)) self.rect = self.image.get_rect() self.rect.x = parent.rect.x + parent.width/2 - self.width/2 diff --git a/player.py b/player.py index e78c68d..0ae761d 100644 --- a/player.py +++ b/player.py @@ -2,7 +2,7 @@ import pygame class Shooter(pygame.sprite.Sprite): - def __init__(self, window, texture, colour=(255,255,255), width=45, height=20): + def __init__(self, window, texture, colour=(255,255,255), width=55, height=25): super().__init__() self.width = width self.height = height diff --git a/target.py b/target.py index 89fdb04..24b4565 100644 --- a/target.py +++ b/target.py @@ -3,7 +3,7 @@ from random import randint class Target(pygame.sprite.Sprite): - def __init__(self, x, y, textures, color=(30,0,150), width=16, height=16): + def __init__(self, x, y, textures, color=(30,0,150), width=23, height=23): super().__init__() self.width = width self.height = height