summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAuke Kok <sofar@foo-projects.org>2015-11-25 22:54:31 -0800
committerAuke Kok <sofar@foo-projects.org>2015-11-25 22:54:31 -0800
commit180a1db44745e1d09f7463737122e54c63970c4d (patch)
treee5b9586a6d5df099aeef3d2d2fadbc5064d36bb8
parent5329ff5b369602918fbb70b61351b2d89ae440eb (diff)
Fly sounds.
These accomodate the fly particles around plants that died. probably gonna freak some players out ;^)
-rw-r--r--LICENSE3
-rw-r--r--init.lua1
-rw-r--r--sounds/crops_flies.oggbin0 -> 147367 bytes
3 files changed, 4 insertions, 0 deletions
diff --git a/LICENSE b/LICENSE
index 5a70ce5..e81368d 100644
--- a/LICENSE
+++ b/LICENSE
@@ -21,6 +21,9 @@ Sounds:
- crops_watercan_entering.ogg
http://freesound.org/people/Quistard/sounds/166824/
CC-BY-3.0
+ - crops_flies.ogg
+ http://www.freesound.org/people/galeku/sounds/46938/
+ CC0-1.0
* Sounds edited with audacity
diff --git a/init.lua b/init.lua
index a7f0989..b8c9d1d 100644
--- a/init.lua
+++ b/init.lua
@@ -275,6 +275,7 @@ crops.die = function(pos)
local node = minetest.get_node(pos)
local plant = find_plant(node)
plant.properties.die(pos)
+ minetest.sound_play("crops_flies", {pos=pos, gain=0.8})
end
minetest.register_tool("crops:watering_can", {
diff --git a/sounds/crops_flies.ogg b/sounds/crops_flies.ogg
new file mode 100644
index 0000000..b5d3941
--- /dev/null
+++ b/sounds/crops_flies.ogg
Binary files differ