Browse Source

refactoring:Übersicht in Main angepasst

main
fdai7172 2 years ago
parent
commit
cb4a24635b
  1. 10
      src/Paper-Bin.c

10
src/Paper-Bin.c

@ -136,24 +136,21 @@ void loadLevel(int lvlnum)
int main()
{
loadLevel(lvlnumber);
while (1)
{
clearField();
field[ballX][ballY -= 1] = 'O';
generateField();
int Ball_In_Bin = checkBallPosition();
switch (Ball_In_Bin)
{
case (1):
ScorePoints += 50;
loadLevel(++lvlnumber);
break;
case(2):
ScorePoints -= 5;
lifeCount--;
@ -167,22 +164,19 @@ int main()
scanf(" %c", &choice);
system("start \"\" \"https://youtu.be/dQw4w9WgXcQ\"");
return 0;
}
addScoreboard();
sortScoreboard();
return 0;
}
loadLevel(lvlnumber);
break;
}
Ball_In_Bin = 0;
sleep(1);
}
}
void getStartPosition()
{

Loading…
Cancel
Save