|
@ -25,6 +25,7 @@ void generateField(); |
|
|
void sortScoreboard(); |
|
|
void sortScoreboard(); |
|
|
void buildBin(int width, int height); |
|
|
void buildBin(int width, int height); |
|
|
void getStartPosition(); |
|
|
void getStartPosition(); |
|
|
|
|
|
int checkBallPosition(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct Player |
|
|
struct Player |
|
@ -259,7 +260,7 @@ void Generatefield() { |
|
|
} |
|
|
} |
|
|
if (lvlnumber > 6 && windIntervall % 2 == 0) |
|
|
if (lvlnumber > 6 && windIntervall % 2 == 0) |
|
|
{ |
|
|
{ |
|
|
windForce < 0 ? (Ballx -= windForce * -5) : (Ballx += windForce); |
|
|
|
|
|
|
|
|
windForce < 0 ? (Ballx -= windForce * -1) : (Ballx += windForce); |
|
|
} |
|
|
} |
|
|
windIntervall++; |
|
|
windIntervall++; |
|
|
|
|
|
|
|
|