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

Loading…
Cancel
Save