Use the lifetime limiters on Bullets & Asteroids
All checks were successful
Basic checks / Basic build-and-test supertask (push) Successful in 7m3s
All checks were successful
Basic checks / Basic build-and-test supertask (push) Successful in 7m3s
Closes #14 Despawn bullets to limit range. Despawn asteroids to limit random garbage floating around the scene.
This commit is contained in:
@@ -17,5 +17,8 @@ pub(crate) const SHIP_THRUST: f32 = 1.0;
|
||||
pub(crate) const SHIP_ROTATION: f32 = 4.0; // +/- rotation speed in... radians per frame
|
||||
|
||||
pub(crate) const BULLET_SPEED: f32 = 150.0;
|
||||
pub(crate) const BULLET_LIFETIME: f32 = 2.0;
|
||||
|
||||
pub(crate) const ASTEROID_LIFETIME: f32 = 40.0;
|
||||
|
||||
pub const RNG_SEED: [u8; 32] = *b"12345678909876543210123456789098";
|
||||
|
||||
Reference in New Issue
Block a user