Skip to content

Commit

Permalink
no spawn right angle ball speed
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoDornelles committed Sep 1, 2020
1 parent baa0e61 commit 86af1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game.pas
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
ball.x := screenWidth div 2;
ball.y := screenHeight div 2;
ballSpeed.x := -ballSpeedMin;
ballSpeed.y := Randomrange(-ballSpeedMin, ballSpeedMin);
repeat ballSpeed.y := Randomrange(-ballSpeedMin, ballSpeedMin) until ballSpeed.x <> 0;
player := RectangleCreate(padding, Trunc(screenHeight / 2) - Trunc(barSize.y / 2), Trunc(barSize.x), Trunc(barSize.y));
end;
// game code
Expand Down

0 comments on commit 86af1b3

Please sign in to comment.