mirror of
https://github.com/lov3b/Pong.git
synced 2025-01-18 04:30:11 +01:00
no more top to bottom super bumps
This commit is contained in:
parent
5f7b9aa116
commit
998cdceb16
@ -30,10 +30,11 @@ public:
|
||||
std::uniform_int_distribution<uint8_t> ints(0, 1);
|
||||
int sign = ints(mtRand) ? -1 : 1;
|
||||
|
||||
std::uniform_real_distribution<float_t> angleGen(3, 60);
|
||||
double_t angle = toRadians(angleGen(mtRand));
|
||||
x = cos(angle) * sign * hypotenuse;
|
||||
y = sin(angle) * sign * hypotenuse;
|
||||
std::uniform_real_distribution<float_t> angleGen(15, 75);
|
||||
double_t degrees = angleGen(mtRand);
|
||||
double_t angle = toRadians(degrees);
|
||||
x = sin(angle) * sign * hypotenuse;
|
||||
y = cos(angle) * sign * hypotenuse;
|
||||
|
||||
smallAngleGen = std::uniform_real_distribution<double_t>(15, 20);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user