From d99d95fa1b36bd0fad4ba293f148d2c2d5533e20 Mon Sep 17 00:00:00 2001 From: fdai8040 Date: Sat, 3 Feb 2024 18:01:43 +0000 Subject: [PATCH] Aktualisieren src/main/c/Pong/pong.h --- src/main/c/Pong/pong.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/c/Pong/pong.h b/src/main/c/Pong/pong.h index 4e6cfdd..9074535 100644 --- a/src/main/c/Pong/pong.h +++ b/src/main/c/Pong/pong.h @@ -5,5 +5,14 @@ int pong(); void resetScore(int *score1, int *score2); +typedef struct { + int x; + int y; + int speedX; + int speedY; +} Ball; + +void updateBallPosition(Ball* ball); + #endif