Use the lifetime limiters on Bullets & Asteroids
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:
2025-08-10 17:13:25 -05:00
parent 2f463303a0
commit 364fbd7530
3 changed files with 9 additions and 4 deletions

View File

@@ -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";