add more fishing sounds!
This commit is contained in:
parent
1192a46b9c
commit
451a4413c4
|
@ -0,0 +1,15 @@
|
|||
License of media (sounds)
|
||||
--------------------------------------
|
||||
CC0 1.0 Universal (CC0 1.0)
|
||||
https://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
Authors of media files
|
||||
-----------------------
|
||||
|
||||
You're Perfect Studio (CC0)
|
||||
https://opengameart.org/content/fisheefects
|
||||
reel.wav, bloop.wav
|
||||
|
||||
rubberduck (CC0)
|
||||
https://opengameart.org/content/40-cc0-water-splash-slime-sfx
|
||||
splash_03.ogg
|
|
@ -161,6 +161,7 @@ local fish = function(itemstack, player, pointed_thing)
|
|||
end
|
||||
--Destroy bobber.
|
||||
ent.object:remove()
|
||||
minetest.sound_play("reel", {pos=player:get_pos(), gain=0.3}, true)
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
|
@ -242,6 +243,7 @@ local bobber_on_step = function(self, dtime)
|
|||
if self._oldy == nil then
|
||||
self.object:set_pos({x=self.object:get_pos().x,y=math.floor(self.object:get_pos().y)+.5,z=self.object:get_pos().z})
|
||||
self._oldy = self.object:get_pos().y
|
||||
minetest.sound_play("splash_03", {pos=epos, gain=0.3}, true)
|
||||
end
|
||||
-- reset to original position after dive.
|
||||
if self.object:get_pos().y > self._oldy then
|
||||
|
@ -280,6 +282,7 @@ local bobber_on_step = function(self, dtime)
|
|||
self._time = self._time + dtime
|
||||
else
|
||||
-- wait time is over time to dive.
|
||||
minetest.sound_play("bloop", {pos=epos, gain=0.3}, true)
|
||||
self._dive = true
|
||||
self.object:set_velocity({x=0,y=-2,z=0})
|
||||
self.object:set_acceleration({x=0,y=5,z=0})
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue