fix calls to GetRandomValue
This commit is contained in:
parent
9057c47904
commit
0bfc37450c
1 changed files with 58 additions and 58 deletions
|
|
@ -64,11 +64,11 @@ int main(void)
|
|||
if (bunniesCount < MAX_BUNNIES)
|
||||
{
|
||||
bunnies[bunniesCount].position = GetMousePosition();
|
||||
bunnies[bunniesCount].speed.x = (float)GetRandomValue(-250, 250)/60.0f;
|
||||
bunnies[bunniesCount].speed.y = (float)GetRandomValue(-250, 250)/60.0f;
|
||||
bunnies[bunniesCount].color = (Color){ GetRandomValue(50, 240),
|
||||
GetRandomValue(80, 240),
|
||||
GetRandomValue(100, 240), 255 };
|
||||
bunnies[bunniesCount].speed.x = (float)GetRandomRangeInt(-250, 250)/60.0f;
|
||||
bunnies[bunniesCount].speed.y = (float)GetRandomRangeInt(-250, 250)/60.0f;
|
||||
bunnies[bunniesCount].color = (Color){ GetRandomRangeInt(50, 240),
|
||||
GetRandomRangeInt(80, 240),
|
||||
GetRandomRangeInt(100, 240), 255 };
|
||||
bunniesCount++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue