From a86ae4744b37ba66f265bbdd11812fc8f4b8b29e Mon Sep 17 00:00:00 2001 From: fdai7103 Date: Wed, 8 Feb 2023 21:34:23 +0100 Subject: [PATCH] =?UTF-8?q?Variablen=20f=C3=BCr=20Feldgr=C3=B6=C3=9Fe=20an?= =?UTF-8?q?gelegt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Paper-Bin.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index beabc5e..6d35f0a 100644 --- a/src/Paper-Bin.c +++ b/src/Paper-Bin.c @@ -1,13 +1,16 @@ #include #include +#define fieldWidth 25 +#define fieldHeigth 30 + int wallX = 0; int wallY = 0; int wallLength = 0; int BinX; int BinY = 10; -char field[23][29]; +char field[fieldWidth][fieldHeigth]; int windForce = 0; int ScorePoints = 0; @@ -16,8 +19,6 @@ int Ballx = -1; int Bally = 27; int windIntervall = 0; int lvlnumber = 1; -int fieldWidth = 25; -int fieldHeigth = 30; struct Player {