From 060e7da64edb7f92b4708cfb1eb60857f8d37a5e Mon Sep 17 00:00:00 2001 From: fdai8040 Date: Sun, 4 Feb 2024 14:07:28 +0000 Subject: [PATCH] =?UTF-8?q?refactoring:=20r=C3=BCckg=C3=A4ngig=5Fsonst=5FF?= =?UTF-8?q?ehler=5FUnittest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/c/Pong/pong.c | 8 ++++++++ src/main/c/Pong/pong.h | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/c/Pong/pong.c b/src/main/c/Pong/pong.c index 3424283..d962a4c 100644 --- a/src/main/c/Pong/pong.c +++ b/src/main/c/Pong/pong.c @@ -11,6 +11,14 @@ #define PADDLE "\033[1;31m#\033[0m" #define BALL "\033[1;31mO\033[0m" +//Ballstruktur +typedef struct { + int x; + int y; + int speedX; + int speedY; +} Ball; + // Bildschirm löschen nach Veränderung Position void clearScreen() { system("clear"); diff --git a/src/main/c/Pong/pong.h b/src/main/c/Pong/pong.h index f728064..4e6cfdd 100644 --- a/src/main/c/Pong/pong.h +++ b/src/main/c/Pong/pong.h @@ -1,14 +1,6 @@ #ifndef PONG_H #define PONG_H -//Ballstruktur -typedef struct { - int x; - int y; - int speedX; - int speedY; -} Ball; - int pong(); void resetScore(int *score1, int *score2);