diff --git a/README.md b/README.md index 1a14eef..15b1629 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Starfield\* +![Game preview](preview.gif) + Basically a port of the [Daniel Shiffman's Starfield p5.js sketch](https://thecodingtrain.com/challenges/1-starfield) for the [Playdate](https://play.date/) Just turn the crank forward to accelerate. Have fun! diff --git a/preview.gif b/preview.gif new file mode 100644 index 0000000..5fd706d Binary files /dev/null and b/preview.gif differ diff --git a/src/lib.rs b/src/lib.rs index 6fb4aab..ee21e76 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,7 +28,7 @@ const fn map(value: f32, start1: f32, stop1: f32, start2: f32, stop2: f32) -> f3 #[inline(always)] const fn random(value: u32, min: f32, max: f32) -> f32 { - let fvalue = value as f32 / 100000.0; + let fvalue = value as f32 / 1000.0; fvalue % (max - min) + min }