Exemplo n.º 1
0
 def __init__(self):
     """Create a new game"""
     self.score = 0
     self.high_score = 0
     self.balls = []
     self.bg, self.bg_rect = load_png('bin/background.png')
     self.reset()
Exemplo n.º 2
0
Arquivo: game.py Projeto: Jayd0r/Aula
 def __init__(self, start_x, start_y, radius):
     self.posX = start_x
     self.posY = start_y
     self.velX = 0
     self.velY = 0
     self.radius = radius
     self.img = load_png("bin/ball.png")
Exemplo n.º 3
0
 def __init__(self, start_x, start_y, radius):
     """Creates a ball"""
     self.posX = start_x
     self.posY = start_y
     self.velX = 0
     self.velY = 0
     self.radius = radius
     self.img, self.img_rect = load_png("bin/ball.png")
Exemplo n.º 4
0
 def __init__(self):
     """Create a new game"""
     self.score = 0
     self.ball = Ball(WIDTH // 2, BALL_SIZE, BALL_SIZE)
     self.bg, self.bg_rect = load_png('bin/background.png')
     self.reset()
Exemplo n.º 5
0
Arquivo: game.py Projeto: Jayd0r/Aula
    def __init__(self, score=0):
        self.score = score
        self.ball = Ball(WIDTH / 2, HEIGHT / 2, BALL_SIZE)
        self.bg, self.bg_rect = load_png('bin/background.png')

        self.reset()