From 7ff181832940c178b7619ee80b55c7751ce5b8b6 Mon Sep 17 00:00:00 2001 From: fdai7037 Date: Wed, 8 Feb 2023 18:27:57 +0100 Subject: [PATCH] Ball erzeugt und dessen Funktionsweise getestet --- src/Paper-Bin.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index 900ddb4..76d9778 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -15,6 +15,9 @@ void buildBin(int width, int heigth){ int main() { + int ballX = 7; + int BallY = 23; + while (1) { system("clear"); @@ -27,6 +30,9 @@ int main() } } + field[ballX][BallY -= 1] = 'O'; + + buildBin(10,10); for (int i = 0; i < 29; i++)