|
|
@ -232,6 +232,21 @@ void Generatefield() { |
|
|
|
windForce < 0 ? (Ballx -= windForce * -5) : (Ballx += windForce); |
|
|
|
} |
|
|
|
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() |
|
|
|