hack to fix ball getting stuck

sammachin-gprs
Chetan Padia 2018-09-01 22:21:22 +01:00
parent f22c2ef44b
commit d78de8528d
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ def gameOver(score):
def runGame():
paddle = Paddle()
direction = random.random() * 2 - 1
direction = random.random() - 0.5
initial_speed_up = 4
ball = Ball(x = SCREEN_WIDTH / 2, y = SCREEN_HEIGHT / 2, dx = math.cos(direction) * initial_speed_up, dy = math.sin(direction) * initial_speed_up)
blocks = \