From 62ff5245c26c305e35a2903cc64a60cb20718e96 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Sun, 27 Feb 2022 01:15:31 +0530 Subject: Initial Commit * ECS - In-Progress * GameStates - Skeleton Implemented * Library Integrations - Completed * Levels - In-Progress --- scenes/level1_scene.lua | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 scenes/level1_scene.lua (limited to 'scenes/level1_scene.lua') diff --git a/scenes/level1_scene.lua b/scenes/level1_scene.lua new file mode 100644 index 0000000..83d676e --- /dev/null +++ b/scenes/level1_scene.lua @@ -0,0 +1,35 @@ +level1 = {} -- Level1 State + +Map = require("utils.map") +-- imports +require("utils.constants") + +local map = nil + +function level1:init() + constants.resetColors() + map = Map("level1") +end + +function level1:enter(previous) + +end + +function level1:update(dt) + map.update(dt) +end + +function level1:draw() + map.draw() + --love.graphics.print("Level 1", 100, 200) +end + +function level1:keypressed(key, scancode) + +end + +function level1:leave() + map = nil +end + +return level1 \ No newline at end of file -- cgit v1.2.3