changed sise and defaults
This commit is contained in:
parent
afcd0a29a7
commit
749cdf77a2
1 changed files with 5 additions and 4 deletions
|
@ -2,7 +2,7 @@ import pygame
|
||||||
|
|
||||||
|
|
||||||
class Shooter(pygame.sprite.Sprite):
|
class Shooter(pygame.sprite.Sprite):
|
||||||
def __init__(self, window, color=(255,255,255), width=50, height=25):
|
def __init__(self, window, color=(255,255,255), width=45, height=20):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.width = width
|
self.width = width
|
||||||
self.height = height
|
self.height = height
|
||||||
|
@ -12,8 +12,9 @@ class Shooter(pygame.sprite.Sprite):
|
||||||
self.rect = self.image.get_rect()
|
self.rect = self.image.get_rect()
|
||||||
self.speed = 3
|
self.speed = 3
|
||||||
self.window_rect = window.get_rect()
|
self.window_rect = window.get_rect()
|
||||||
|
|
||||||
self.score = 0
|
self.score = 0
|
||||||
self.OP = True
|
self.OP = False
|
||||||
self.level = 0
|
self.level = 0
|
||||||
self.lives = 3
|
self.lives = 3
|
||||||
self.powerup = ""
|
self.powerup = ""
|
||||||
|
|
Reference in a new issue