changeset 215:08f39251c6a5

Laser sound
author Neil Muller <neil@dip.sun.ac.za>
date Thu, 26 Aug 2010 19:39:00 +0200
parents 035dceda9f85
children f7dc767dd971
files Resources/sounds/laser.ogg Resources/sounds/sources.txt gamelib/scenes/machine.py
diffstat 3 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
Binary file Resources/sounds/laser.ogg has changed
--- a/Resources/sounds/sources.txt	Thu Aug 26 19:40:08 2010 +0200
+++ b/Resources/sounds/sources.txt	Thu Aug 26 19:39:00 2010 +0200
@@ -56,3 +56,10 @@
 break.ogg wavfile: chain_drop_3.wav
 chain.ogg wavfile: glass_break3.wav
 clang2.ogg wavfile: clang_2.wav
+
+[laser.ogg]
+URL: http://www.archive.org/download/MattLange/MattLange44.zip
+Source: http://www.archive.org/details/MattLange
+License: http://creativecommons.org/licenses/by/3.0/
+Credit: Sound samples by Matt Lange recorded for Richard Boulanger for use in the One Laptop per Child music library. See http://wiki.laptop.org/go/Sound_samples for details.
+laser.ogg wavfile: laser9.wav
--- a/gamelib/scenes/machine.py	Thu Aug 26 19:40:08 2010 +0200
+++ b/gamelib/scenes/machine.py	Thu Aug 26 19:39:00 2010 +0200
@@ -63,7 +63,8 @@
         else:
             self.set_data('cans_in_place', 0)
             self.state.add_inventory_item('tube_fragments')
-            return Result("With high-precision spitzensparken, the cans are welded into a replacement tube.")
+            return Result("With high-precision spitzensparken, the cans are welded into a replacement tube.",
+                    soundfile='laser.ogg')
 
     def interact_with_dented_can(self, item):
         return self.interact_with_empty_can(item)