From f5eaa22a1c9598c9f7a55a41614d1ce4769dee4a Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Tue, 1 Mar 2022 02:48:49 +0530 Subject: * Adds Ambience SFX & Management * Notification - In-Progress * Collision Callbacks * Interactive & Pickable entities - In-Progress --- scenes/level1_scene.lua | 8 +++++--- scenes/menu_scene.lua | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'scenes') 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"); -- cgit v1.2.3