diff options
-rw-r--r-- | assets/maps/level1.lua | 41 | ||||
-rw-r--r-- | assets/sfx/sfx_deathscream_alien1.wav | bin | 0 -> 133922 bytes | |||
-rw-r--r-- | utils/screen_shaker.lua | 2 |
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 Binary files differnew file mode 100644 index 0000000..7786710 --- /dev/null +++ b/assets/sfx/sfx_deathscream_alien1.wav 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 |