fix calls to GetRandomValue
This commit is contained in:
parent
9057c47904
commit
0bfc37450c
1 changed files with 58 additions and 58 deletions
|
|
@ -46,10 +46,10 @@ int main(void)
|
|||
for (int i = 0; i < MAX_PARTICLES; i++)
|
||||
{
|
||||
mouseTail[i].position = (Vector2){ 0, 0 };
|
||||
mouseTail[i].color = (Color){ GetRandomValue(0, 255), GetRandomValue(0, 255), GetRandomValue(0, 255), 255 };
|
||||
mouseTail[i].color = (Color){ GetRandomRangeInt(0, 255), GetRandomRangeInt(0, 255), GetRandomRangeInt(0, 255), 255 };
|
||||
mouseTail[i].alpha = 1.0f;
|
||||
mouseTail[i].size = (float)GetRandomValue(1, 30)/20.0f;
|
||||
mouseTail[i].rotation = (float)GetRandomValue(0, 360);
|
||||
mouseTail[i].size = (float)GetRandomRangeInt(1, 30)/20.0f;
|
||||
mouseTail[i].rotation = (float)GetRandomRangeInt(0, 360);
|
||||
mouseTail[i].active = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue