@ -83,6 +83,13 @@ int getch(void) {
return ch;
}
//Aktualisierung Ballposition
void updateBallPosition(Ball *ball) {
ball->x += ball->speedX;
ball->y += ball->speedY;
int main(){
int paddle1PositionY = HEIGHT / 2 - PADDLE_LENGTH / 2;
int paddle2PositionY = HEIGHT / 2 - PADDLE_LENGTH / 2;