Skip to content
Snippets Groups Projects
Commit c548b19f authored by dg's avatar dg
Browse files

creeakkkkk

git-svn-id: http://svn.net-core.org/repos/t-engine4@4569 51575b47-30f0-44d4-a5cc-537603b46e54
parent 8e83908b
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,7 @@ function _M:playSound(name, position)
print("[SOUND] loading from", "/data/sound/"..name..".ogg", ":=:", def.sample)
else
def = {}
print("[SOUND] loading from", "/data/sound/"..name..".ogg", ":=: unknown file")
end
self.loaded_sounds[name] = def
......
......@@ -53,7 +53,7 @@ function _M:block_move(x, y, e, act, couldpass)
Dialog:yesnoPopup(self.name, self.door_player_check, function(ret)
if ret then
game.level.map(x, y, engine.Map.TERRAIN, game.zone.grid_list[self.door_opened])
game:playSoundNear({x=x,y=y}, {"door_creaks/creak_%d.ogg",1,4})
game:playSoundNear({x=x,y=y}, {"ambient/door_creaks/creak_%d",1,4})
end
end, "Open", "Leave")
end
......@@ -63,7 +63,7 @@ function _M:block_move(x, y, e, act, couldpass)
end
else
game.level.map(x, y, engine.Map.TERRAIN, game.zone.grid_list[self.door_opened])
game:playSoundNear({x=x,y=y}, {"door_creaks/creak_%d.ogg",1,4})
game:playSoundNear({x=x,y=y}, {"ambient/door_creaks/creak_%d",1,4})
end
return true
elseif self.door_opened and not couldpass then
......
File added
File added
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment