Browse Source

Bewegung Ball

remotes/origin/branchJulia
fdai8040 11 months ago
parent
commit
e88f7ff2e6
  1. 4
      src/main/c/Pong/game.c

4
src/main/c/Pong/game.c

@ -102,6 +102,10 @@ int main(){
paddle2PositionY++; paddle2PositionY++;
} }
} }
//Bewegung Ball
ball.x += ball.speedX;
ball.y += ball.speedY;
draw Field(paddle1PositionY, paddle2PositionY); draw Field(paddle1PositionY, paddle2PositionY);

Loading…
Cancel
Save