diff --git a/src/Paper-Bin.c b/src/Paper-Bin.c index 48e500d..15b8679 100644 --- a/src/Paper-Bin.c +++ b/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() {