From e88f7ff2e6d1f7d42428f18763751b40ca3b13cf Mon Sep 17 00:00:00 2001 From: fdai8040 Date: Wed, 31 Jan 2024 15:14:28 +0000 Subject: [PATCH] Bewegung Ball --- src/main/c/Pong/game.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/c/Pong/game.c b/src/main/c/Pong/game.c index f0f382e..4030b11 100644 --- a/src/main/c/Pong/game.c +++ b/src/main/c/Pong/game.c @@ -102,6 +102,10 @@ int main(){ paddle2PositionY++; } } + + //Bewegung Ball + ball.x += ball.speedX; + ball.y += ball.speedY; draw Field(paddle1PositionY, paddle2PositionY);