|
|
@ -158,31 +158,31 @@ int main() |
|
|
|
|
|
|
|
switch (ball_In_Bin) |
|
|
|
{ |
|
|
|
case (1): |
|
|
|
scorePoints += 50; |
|
|
|
loadLevel(++lvlnumber); |
|
|
|
break; |
|
|
|
|
|
|
|
case (2): |
|
|
|
scorePoints -= 5; |
|
|
|
lifeCount--; |
|
|
|
if (lifeCount < 1) |
|
|
|
case (1): |
|
|
|
scorePoints += 50; |
|
|
|
loadLevel(++lvlnumber); |
|
|
|
break; |
|
|
|
|
|
|
|
case (2): |
|
|
|
scorePoints -= 5; |
|
|
|
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"); |
|
|
|
printf("Willst du einen leichteren Modus starten?\n[J]a/[N]ein\n"); |
|
|
|
scanf(" %c", &choice); |
|
|
|
system("start \"\" \"https://youtu.be/dQw4w9WgXcQ\""); |
|
|
|
return 0; |
|
|
|
} |
|
|
|
addScoreboard(); |
|
|
|
sortScoreboard(); |
|
|
|
return 0; |
|
|
|
char choice = ' '; |
|
|
|
printf("Scheint so, als wäre das Spiel eine Nummer zu groß für dich!\n"); |
|
|
|
printf("Willst du einen leichteren Modus starten?\n[J]a/[N]ein\n"); |
|
|
|
scanf(" %c", &choice); |
|
|
|
system("start \"\" \"https://youtu.be/dQw4w9WgXcQ\""); |
|
|
|
return 0; |
|
|
|
} |
|
|
|
loadLevel(lvlnumber); |
|
|
|
break; |
|
|
|
addScoreboard(); |
|
|
|
sortScoreboard(); |
|
|
|
return 0; |
|
|
|
} |
|
|
|
loadLevel(lvlnumber); |
|
|
|
break; |
|
|
|
} |
|
|
|
ball_In_Bin = 0; |
|
|
|
sleep(1); |
|
|
|