diff options
Diffstat (limited to 'scenes/level1_scene.lua')
-rw-r--r-- | scenes/level1_scene.lua | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/scenes/level1_scene.lua b/scenes/level1_scene.lua index 5b774ea..30406df 100644 --- a/scenes/level1_scene.lua +++ b/scenes/level1_scene.lua @@ -4,28 +4,24 @@ Map = require("utils.map") -- imports require("utils.constants") -local map = nil - function level1:init() - constants.resetColors() - map = Map("level1") + constants.resetColors() + map = Map("level1") end function level1:enter(previous) - end function level1:update(dt) - map.update(dt) + map:update(dt) end function level1:draw() - map.draw() - --love.graphics.print("Level 1", 100, 200) + map:draw() end function level1:keypressed(key, scancode) - map.keypressed(key, scancode) + map:keypressed(key, scancode) end function level1:leave() |