From 05add67d6f95c51a3501bc15a742cf9fccc4b67e Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Mon, 28 Feb 2022 04:08:01 +0530 Subject: Adds SFX for monster growl --- utils/screen_shaker.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils') 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 -- cgit v1.2.3