diff options
author | Indrajith K L | 2022-02-28 04:08:01 +0530 |
---|---|---|
committer | Indrajith K L | 2022-02-28 04:08:01 +0530 |
commit | 05add67d6f95c51a3501bc15a742cf9fccc4b67e (patch) | |
tree | 7ca5d70b12bd46af8f9c57f04d12dc563e1d4454 /utils | |
parent | 77f087952dda8cd3608f578877dab3c667fedabc (diff) | |
download | YEAD-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.lua | 2 |
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 |