|
@ -83,6 +83,8 @@ int main(){ |
|
|
int paddle1PositionY = HEIGHT / 2 - PADDLE_LENGTH / 2; |
|
|
int paddle1PositionY = HEIGHT / 2 - PADDLE_LENGTH / 2; |
|
|
int paddle2PositionY = HEIGHT / 2 - PADDLE_LENGTH / 2; |
|
|
int paddle2PositionY = HEIGHT / 2 - PADDLE_LENGTH / 2; |
|
|
Ball ball = {WIDTH / 2, HEIGHT / 2, 1, 1}; //Startposition&Geschwindigkeit Ball |
|
|
Ball ball = {WIDTH / 2, HEIGHT / 2, 1, 1}; //Startposition&Geschwindigkeit Ball |
|
|
|
|
|
int score1 = 0; |
|
|
|
|
|
int score2 = 0; |
|
|
|
|
|
|
|
|
while (1) { |
|
|
while (1) { |
|
|
//Steuerung für Schläger 1 |
|
|
//Steuerung für Schläger 1 |
|
|