aboutsummaryrefslogtreecommitdiff
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
parent77f087952dda8cd3608f578877dab3c667fedabc (diff)
downloadYEAD-05add67d6f95c51a3501bc15a742cf9fccc4b67e.tar.gz
YEAD-05add67d6f95c51a3501bc15a742cf9fccc4b67e.tar.bz2
YEAD-05add67d6f95c51a3501bc15a742cf9fccc4b67e.zip
Adds SFX for monster growl
-rw-r--r--assets/maps/level1.lua41
-rw-r--r--assets/sfx/sfx_deathscream_alien1.wavbin0 -> 133922 bytes
-rw-r--r--utils/screen_shaker.lua2
3 files changed, 42 insertions, 1 deletions
diff --git a/assets/maps/level1.lua b/assets/maps/level1.lua
index 59bb243..41084c5 100644
--- a/assets/maps/level1.lua
+++ b/assets/maps/level1.lua
@@ -9,7 +9,7 @@ return {
tilewidth = 16,
tileheight = 16,
nextlayerid = 6,
- nextobjectid = 21,
+ nextobjectid = 25,
properties = {},
tilesets = {
{
@@ -273,6 +273,45 @@ return {
rotation = 0,
visible = true,
properties = {}
+ },
+ {
+ id = 22,
+ name = "",
+ type = "",
+ shape = "rectangle",
+ x = 256,
+ y = 48,
+ width = 6.9375,
+ height = 16,
+ rotation = 0,
+ visible = true,
+ properties = {}
+ },
+ {
+ id = 23,
+ name = "",
+ type = "",
+ shape = "rectangle",
+ x = 280.969,
+ y = 48,
+ width = 6.9375,
+ height = 16,
+ rotation = 0,
+ visible = true,
+ properties = {}
+ },
+ {
+ id = 24,
+ name = "",
+ type = "",
+ shape = "rectangle",
+ x = 263.375,
+ y = 54.875,
+ width = 17.25,
+ height = 9.0625,
+ rotation = 0,
+ visible = true,
+ properties = {}
}
}
},
diff --git a/assets/sfx/sfx_deathscream_alien1.wav b/assets/sfx/sfx_deathscream_alien1.wav
new file mode 100644
index 0000000..7786710
--- /dev/null
+++ b/assets/sfx/sfx_deathscream_alien1.wav
Binary files differ
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