diff options
Diffstat (limited to 'scenes')
-rw-r--r-- | scenes/level1_scene.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scenes/level1_scene.lua b/scenes/level1_scene.lua index 30406df..f532703 100644 --- a/scenes/level1_scene.lua +++ b/scenes/level1_scene.lua @@ -1,11 +1,12 @@ level1 = {} -- Level1 State - +require("utils.screen_shaker") Map = require("utils.map") -- imports require("utils.constants") function level1:init() constants.resetColors() + screenShake = ScreenShaker() map = Map("level1") end @@ -14,9 +15,11 @@ end function level1:update(dt) map:update(dt) + screenShake:update(dt) end function level1:draw() + screenShake:draw() map:draw() end @@ -28,4 +31,9 @@ function level1:leave() map = nil end + +function printMessage() + print('Hello') +end + return level1
\ No newline at end of file |