faster better stronger

This commit is contained in:
Zynh Ludwig 2024-09-03 01:16:25 -07:00
parent 3d512db39b
commit 6938bcd2d0

View file

@ -79,7 +79,7 @@ fn setup(
let lower_bound = -100.; let lower_bound = -100.;
let upper_bound = 100.; let upper_bound = 100.;
for i in 0..100 { for i in 0..1000 {
use std::f32::consts::TAU; use std::f32::consts::TAU;
let x = small_rng.gen_range(lower_bound..=upper_bound); let x = small_rng.gen_range(lower_bound..=upper_bound);
@ -95,7 +95,7 @@ fn setup(
.with_translation(Vec3::new(x, y, 0.)), .with_translation(Vec3::new(x, y, 0.)),
..default() ..default()
}, },
velocity: Velocity(Vec2::from_angle(angle) * 100.), velocity: Velocity(Vec2::from_angle(angle) * 200.),
..default() ..default()
}); });
} }