diff options
author | Indrajith K L | 2022-03-01 02:48:49 +0530 |
---|---|---|
committer | Indrajith K L | 2022-03-01 02:48:49 +0530 |
commit | f5eaa22a1c9598c9f7a55a41614d1ce4769dee4a (patch) | |
tree | afbb7585324e9efbfd5820f07d9a0239193d3e99 /utils/screen_shaker.lua | |
parent | 05add67d6f95c51a3501bc15a742cf9fccc4b67e (diff) | |
download | YEAD-f5eaa22a1c9598c9f7a55a41614d1ce4769dee4a.tar.gz YEAD-f5eaa22a1c9598c9f7a55a41614d1ce4769dee4a.tar.bz2 YEAD-f5eaa22a1c9598c9f7a55a41614d1ce4769dee4a.zip |
* Adds Ambience SFX & Management
* Notification - In-Progress
* Collision Callbacks
* Interactive & Pickable entities - In-Progress
Diffstat (limited to 'utils/screen_shaker.lua')
-rw-r--r-- | utils/screen_shaker.lua | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/utils/screen_shaker.lua b/utils/screen_shaker.lua deleted file mode 100644 index aef89e4..0000000 --- a/utils/screen_shaker.lua +++ /dev/null @@ -1,28 +0,0 @@ -Class = require("libs.hump.class") -Shack = require("libs.shack") -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) - end -} - -function ScreenShaker:update(dt) - Timer.update(dt) - Shack:update(dt) -end - -function ScreenShaker:draw() - Shack:apply() -end - -function shakeScreen() - Shack:setShake(20) - monsterGrowl:play() -end - -return ScreenShaker
\ No newline at end of file |