Browse Source

Ball bewegung korrigiert

main
fdai7103 2 years ago
parent
commit
2d25fac955
  1. BIN
      build/artifacts/release/Paper-Bin.out
  2. BIN
      build/release/Paper-Bin.out
  3. BIN
      build/release/out/c/Paper-Bin.o
  4. 4
      src/Paper-Bin.c

BIN
build/artifacts/release/Paper-Bin.out

BIN
build/release/Paper-Bin.out

BIN
build/release/out/c/Paper-Bin.o

4
src/Paper-Bin.c

@ -129,10 +129,12 @@ int main()
while (1) while (1)
{ {
clearField(); clearField();
field[Ballx][Bally -= 1] = 'O';
Generatefield(); Generatefield();
int Ball_In_Bin = checkBallPosition(); int Ball_In_Bin = checkBallPosition();
switch (Ball_In_Bin) switch (Ball_In_Bin)
{ {
case (1): case (1):
@ -174,7 +176,7 @@ int main()
} }
} }
field[ballX][BallY -= 1] = 'O';

Loading…
Cancel
Save