Browse Source

refactoring: Variable umbenannt

main
David PC Saiz 2 years ago
parent
commit
5ab278c96b
  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. 12
      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

12
src/Paper-Bin.c

@ -25,7 +25,7 @@ int lifeCount = 3;
int ballX = -1; int ballX = -1;
int ballY = 27; int ballY = 27;
int windIntervall = 0; int windIntervall = 0;
int lvlnumber = 1;
int lvlNumber = 1;
#pragma endregion #pragma endregion
@ -149,7 +149,7 @@ void loadLevel(int lvlnum)
int main() int main()
{ {
loadLevel(lvlnumber);
loadLevel(lvlNumber);
while (1) while (1)
{ {
clearField(); clearField();
@ -161,7 +161,7 @@ int main()
{ {
case (1): case (1):
scorePoints += 50; scorePoints += 50;
loadLevel(++lvlnumber);
loadLevel(++lvlNumber);
break; break;
case (2): case (2):
@ -169,7 +169,7 @@ int main()
lifeCount--; lifeCount--;
if (lifeCount < 1) if (lifeCount < 1)
{ {
if (lvlnumber == 1)
if (lvlNumber == 1)
{ {
char choice = ' '; char choice = ' ';
printf("Scheint so, als wäre das Spiel eine Nummer zu groß für dich!\n"); printf("Scheint so, als wäre das Spiel eine Nummer zu groß für dich!\n");
@ -182,7 +182,7 @@ int main()
sortScoreboard(); sortScoreboard();
return 0; return 0;
} }
loadLevel(lvlnumber);
loadLevel(lvlNumber);
break; break;
} }
ball_In_Bin = 0; ball_In_Bin = 0;
@ -260,7 +260,7 @@ void generateField()
} }
if (lvlnumber > 6 && windIntervall % 2 == 0)
if (lvlNumber > 6 && windIntervall % 2 == 0)
{ {
windForce < 0 ? (ballX -= windForce * -1) : (ballX += windForce); windForce < 0 ? (ballX -= windForce * -1) : (ballX += windForce);
} }

Loading…
Cancel
Save