Skip to content

Commit

Permalink
Update brickout-game.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jahnaviii authored Oct 28, 2018
1 parent 5407880 commit 4daad95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions brickout-game/brickout-game.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
import random


# Define some colors
# Define Four Colours
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
GREEN = (0, 255, 0)
RED = (255, 0, 0)

pygame.init()

# Set the width and height of the screen [width, height]
# Setting the width and height of the screen [width, height]
size = (700, 500)
screen = pygame.display.set_mode(size)

Expand Down Expand Up @@ -79,11 +79,11 @@ def update(self, paddle, brickwall):
if brickwall.collide(self):
self.__yVel *= -1

# collision detection between ball and paddle.
paddleX = paddle._xLoc
# collision detection between ball and paddle
paddleY = paddle._yLoc
paddleW = paddle._width
paddleH = paddle._height
paddleX = paddle._xLoc
ballX = self._xLoc
ballY = self._yLoc

Expand Down

0 comments on commit 4daad95

Please sign in to comment.