aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorIndrajith K L2022-02-28 04:08:01 +0530
committerIndrajith K L2022-02-28 04:08:01 +0530
commit05add67d6f95c51a3501bc15a742cf9fccc4b67e (patch)
tree7ca5d70b12bd46af8f9c57f04d12dc563e1d4454 /utils
parent77f087952dda8cd3608f578877dab3c667fedabc (diff)
downloadYEAD-05add67d6f95c51a3501bc15a742cf9fccc4b67e.tar.gz
YEAD-05add67d6f95c51a3501bc15a742cf9fccc4b67e.tar.bz2
YEAD-05add67d6f95c51a3501bc15a742cf9fccc4b67e.zip
Adds SFX for monster growl
Diffstat (limited to 'utils')
-rw-r--r--utils/screen_shaker.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/screen_shaker.lua b/utils/screen_shaker.lua
index ca996af..aef89e4 100644
--- a/utils/screen_shaker.lua
+++ b/utils/screen_shaker.lua
@@ -4,6 +4,7 @@ local Timer = require("libs.hump.Timer")
ScreenShaker = Class {
init = function(self)
+ monsterGrowl = love.audio.newSource("assets/sfx/sfx_deathscream_alien1.wav", "static")
local width, height = love.graphics.getDimensions()
Shack:setDimensions(width, height)
Timer.every(10, shakeScreen)
@@ -21,6 +22,7 @@ end
function shakeScreen()
Shack:setShake(20)
+ monsterGrowl:play()
end
return ScreenShaker \ No newline at end of file