File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -135,8 +135,8 @@ int main(void)
135135
136136 while ((fabs (spots [i ].speed .x ) + fabs (spots [i ].speed .y )) < 2 )
137137 {
138- spots [i ].speed .x = GetRandomValue (-400 , 40 )/20 .0f ;
139- spots [i ].speed .y = GetRandomValue (-400 , 40 )/20 .0f ;
138+ spots [i ].speed .x = GetRandomValue (-400 , 40 )/25 .0f ;
139+ spots [i ].speed .y = GetRandomValue (-400 , 40 )/25 .0f ;
140140 }
141141
142142 spots [i ].inner = 28.0f * (i + 1 );
@@ -243,7 +243,7 @@ static void ResetStar(Star *star)
243243 star -> speed .x = (float )GetRandomValue (-1000 , 1000 )/100.0f ;
244244 star -> speed .y = (float )GetRandomValue (-1000 , 1000 )/100.0f ;
245245
246- while (!(fabs (star -> speed .x ) + (fabs (star -> speed .y ) > 1 )));
246+ while (!(fabs (star -> speed .x ) + (fabs (star -> speed .y ) > 1 )))
247247 {
248248 star -> speed .x = (float )GetRandomValue (-1000 , 1000 )/100.0f ;
249249 star -> speed .y = (float )GetRandomValue (-1000 , 1000 )/100.0f ;
You can’t perform that action at this time.
0 commit comments