Browse Source

Zeichnen der Vertikalen wand

main
fdai7172 2 years ago
parent
commit
f5f524bc9f
  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. 15
      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

15
src/Paper-Bin.c

@ -232,6 +232,21 @@ void Generatefield() {
windForce < 0 ? (Ballx -= windForce * -5) : (Ballx += windForce); windForce < 0 ? (Ballx -= windForce * -5) : (Ballx += windForce);
} }
windIntervall++; windIntervall++;
for (int i = 0; i < fieldHeigth; i++)
{
printf("|");
for (int j = 0; j < fieldWidth; j++)
{
if (i == 0 || i == fieldHeigth - 1 || i == 2)
printf("=");
else
printf("%c", field[j][i]);
}
printf("|");
printf("\n");
}
} }
void addScoreboard() void addScoreboard()

Loading…
Cancel
Save