Skip to content

Commit 2edd194

Browse files
Merge pull request geekcomputers#423 from jahnaviii/patch-1
Update brickout-game.py
2 parents e6165bf + 4daad95 commit 2edd194

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

brickout-game/brickout-game.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
import random
2020

2121

22-
# Define some colors
22+
# Define Four Colours
2323
BLACK = (0, 0, 0)
2424
WHITE = (255, 255, 255)
2525
GREEN = (0, 255, 0)
2626
RED = (255, 0, 0)
2727

2828
pygame.init()
2929

30-
# Set the width and height of the screen [width, height]
30+
# Setting the width and height of the screen [width, height]
3131
size = (700, 500)
3232
screen = pygame.display.set_mode(size)
3333

@@ -79,11 +79,11 @@ def update(self, paddle, brickwall):
7979
if brickwall.collide(self):
8080
self.__yVel *= -1
8181

82-
# collision detection between ball and paddle.
83-
paddleX = paddle._xLoc
82+
# collision detection between ball and paddle
8483
paddleY = paddle._yLoc
8584
paddleW = paddle._width
8685
paddleH = paddle._height
86+
paddleX = paddle._xLoc
8787
ballX = self._xLoc
8888
ballY = self._yLoc
8989

0 commit comments

Comments
 (0)