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 /core/ambience.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 'core/ambience.lua')
-rw-r--r-- | core/ambience.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/ambience.lua b/core/ambience.lua new file mode 100644 index 0000000..13919d9 --- /dev/null +++ b/core/ambience.lua @@ -0,0 +1,15 @@ +Class = require("libs.hump.class") + +Ambience = Class { + init = function(self, ambienceTypes) + if ambienceTypes then + for i,ambience in pairs(ambienceTypes) do + local ambientSound = love.audio.newSource("assets/sfx/"..ambience..".ogg", "static") + ambientSound:setLooping(true) + ambientSound:play() + end + end + end +} + +return Ambience
\ No newline at end of file |