diff --git a/test/Pong/test_updateBallPosition.c b/test/Pong/test_updateBallPosition.c index a5c98a6..73cb040 100644 --- a/test/Pong/test_updateBallPosition.c +++ b/test/Pong/test_updateBallPosition.c @@ -9,6 +9,18 @@ typedef struct { int speedY; } Ball; +void updateBallPosition(Ball *ball) { + struct Ball { + int x; + int y; + int speedX; + int speedY; + }; + + ball->x += ball->speedX; + ball->y += ball->speedY; +} + void setUp(void){ //Wenn Funktion Vorraussetzungen braucht }