- ambient_sound improved (now does silence, volume,
[supertux.git] / basest / levels / test / ambient_sound.stl
index 63ab676..e4cd7ee 100644 (file)
@@ -6,8 +6,6 @@
   (sector
     (name  "main")
     (gravity 10.000000)
-    (background (image "arctis.jpg")
-                (speed 0.5))
     (tilemap
       (layer  "background")
       (solid #f)
         61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 
         61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 
         61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 
-        61 0 0 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 
-61 0 0 0 0 0 0 61 
+        61 0 0 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 0 0 0 0 0 0 61 
         61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 
         61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 0 0 0 61 61 
         61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 61 0 0 0 61 
         61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 
         61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 61 
-        61 0 0 0 0 61 61 61 61 61 61 61 61 0 0 0 0 0 0 0 0 0 0 0 0 61 0 
-0 0 61 
+        61 0 0 0 0 61 61 61 61 61 61 61 61 0 0 0 0 0 0 0 0 0 0 0 0 61 0 0 0 61 
         61 0 0 0 0 0 0 0 0 0 0 0 61 0 0 0 0 0 0 0 0 0 0 0 0 61 61 0 0 61 
-        61 0 0 0 0 0 0 0 0 0 0 0 61 61 61 61 0 0 0 0 0 0 0 0 0 0 0 0 0 
-61 
+        61 0 0 0 0 0 0 0 0 0 0 0 61 61 61 61 0 0 0 0 0 0 0 0 0 0 0 0 0 61 
         61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 61 61 0 0 0 0 0 0 0 0 0 0 0 61 
         61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 0 0 0 0 0 0 0 0 0 0 61 61 
-        61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 61 61 0 0 0 0 61 0 0 0 0 
-61 
+        61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 61 61 0 0 0 0 61 0 0 0 0 61 
         61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 0 0 0 0 61 61 0 0 0 61 
         61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 61 61 0 0 0 0 0 0 0 61 
         61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 0 0 0 0 0 0 0 61 
-        61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 61 61 0 0 0 0 61 
-61 
+        61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 61 61 0 0 0 0 61 61 
         61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 0 0 0 0 0 61 
         61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 61 61 0 0 0 61 
         61 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 61 0 0 0 61 
          (image "arctis.jpg")
          (speed 0.500000)
        )
+       (background
+         (image "arctis.jpg")
+         (speed 0.500000)
+       )
        (spawnpoint (name "main") (x 96) (y 160))
-      (ambient_sound (x 128) (y 800) (distance_factor 0.1) 
-        (distance_bias 200) (sample "waterfall"))
-      (infoblock (x 128) (y 800)
+       (ambient_sound (x 128) (y 900) (distance_factor 0.01) 
+       (distance_bias 200.0) (sample "rain"))
+       (ambient_sound (x 512) (y 900) (distance_factor 0.05) 
+       (distance_bias 100.0) (sample "waterfall") (volume 0.2))
+       (ambient_sound (x 800) (y 900) (distance_factor 0.1) 
+       (distance_bias 50.0) (sample "lava"))
+      (infoblock (x 128) (y 864)
+        (message (_ "-Info
+#An ambient sound 
+#source playing the
+#rain effect should 
+#be audible here.
+#Find Waterfall and 
+#Lava sources with
+#smaller geometry 
+#further right.
+"))
+      )
+      (infoblock (x 512) (y 864)
+        (message (_ "-Info
+#Waterfall
+#Volume 0.2
+"))
+      )
+      (infoblock (x 800) (y 864)
         (message (_ "-Info
-#An ambient sound source
-#should be audible here"))
+#Lava
+"))
       )
    )
  )