Add "rand" crate, store an RNG in AsteroidSpawner

This commit is contained in:
2025-07-29 13:32:26 -05:00
parent eee039339e
commit c80ada4aa6
3 changed files with 6 additions and 0 deletions

View File

@@ -16,3 +16,5 @@ pub(crate) const ASTEROID_SMALL_COLOR: Color = Color::srgb(1.0, 0., 0.);
pub(crate) const SHIP_THRUST: f32 = 1.0;
pub(crate) const SHIP_ROTATION: f32 = 0.1; // +/- rotation speed in... radians per frame
pub const RNG_SEED: [u8; 32] = *b"12345678909876543210123456789098";