Browse Source

Changed size of objects

master
Jake Howard 6 years ago
parent
commit
0bc944c284
  1. 4
      bullet.py
  2. 2
      player.py
  3. 2
      target.py

4
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

2
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

2
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

Loading…
Cancel
Save