]> git.seodisparate.com - LudumDare47_StuckInALoop/commitdiff
Minor tweak
authorStephen Seo <seo.disparate@gmail.com>
Sun, 4 Oct 2020 08:53:05 +0000 (17:53 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Sun, 4 Oct 2020 08:53:05 +0000 (17:53 +0900)
src/scenes/mainscene.rs

index 952562ed33dd4b8d2b6c70c7289d08f7fb6c8e33..8405508067aa126b8d93beef6b57332cad5e7355 100644 (file)
@@ -122,13 +122,16 @@ impl MainScene {
 
         let door_states = HashMap::new();
 
+        let mut text_sfx = Source::new(ctx, "/text.ogg").unwrap();
+        text_sfx.set_pitch(1.4f32);
+
         Self {
             font,
             player,
             finished: false,
             current_text,
             final_text: String::new(),
-            text_sfx: Source::new(ctx, "/text.ogg").unwrap(),
+            text_sfx,
             music,
             pod_image: Image::new(ctx, "/stasis_pod.png").unwrap(),
             pod_flicker_image: Image::new(ctx, "/stasis_pod_empty.png").unwrap(),