|
@ -138,7 +138,7 @@ int main(){ |
|
|
ball.speedX = -ball.speedX; |
|
|
ball.speedX = -ball.speedX; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
draw Field(paddle1PositionY, paddle2PositionY,score1, score2); |
|
|
|
|
|
|
|
|
draw Field(paddle1PositionY, paddle2PositionY, ball, score1, score2); |
|
|
|
|
|
|
|
|
// Spielende überprüfen |
|
|
// Spielende überprüfen |
|
|
if (score1 == maxScore || score2 == maxScore) { |
|
|
if (score1 == maxScore || score2 == maxScore) { |
|
|