aboutsummaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
authorIndrajith K L2022-03-01 02:48:49 +0530
committerIndrajith K L2022-03-01 02:48:49 +0530
commitf5eaa22a1c9598c9f7a55a41614d1ce4769dee4a (patch)
treeafbb7585324e9efbfd5820f07d9a0239193d3e99 /scenes
parent05add67d6f95c51a3501bc15a742cf9fccc4b67e (diff)
downloadYEAD-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 'scenes')
-rw-r--r--scenes/level1_scene.lua8
-rw-r--r--scenes/menu_scene.lua2
2 files changed, 6 insertions, 4 deletions
diff --git a/scenes/level1_scene.lua b/scenes/level1_scene.lua
index f532703..e5f4ec0 100644
--- a/scenes/level1_scene.lua
+++ b/scenes/level1_scene.lua
@@ -1,12 +1,14 @@
level1 = {} -- Level1 State
-require("utils.screen_shaker")
-Map = require("utils.map")
+require("core.screen_shaker")
+Map = require("core.map")
-- imports
-require("utils.constants")
+require("core.constants")
+require("core.ambience")
function level1:init()
constants.resetColors()
screenShake = ScreenShaker()
+ ambience = Ambience({"atmosphere1","thunder"})
map = Map("level1")
end
diff --git a/scenes/menu_scene.lua b/scenes/menu_scene.lua
index a930dcc..13bf8fd 100644
--- a/scenes/menu_scene.lua
+++ b/scenes/menu_scene.lua
@@ -3,7 +3,7 @@ menu = {} -- Menu Game State
local Timer = require "libs.hump.timer"
local Gamestate = require("libs.hump.gamestate")
Moonshine = require("libs.moonshine")
-require("utils.constants")
+require("core.constants")
-- scenes
require("scenes.level1_scene");