aboutsummaryrefslogtreecommitdiff
path: root/scenes/level1_scene.lua
diff options
context:
space:
mode:
authorIndrajith K L2022-02-28 02:48:20 +0530
committerIndrajith K L2022-02-28 02:48:20 +0530
commit48a80e29d52ded091d1f9425315957892f0070f7 (patch)
treefd30745880ccfb01ff066c33c1ab4b538363796f /scenes/level1_scene.lua
parent16db60e07d19f8c7c2138839a004b73242e80b19 (diff)
downloadYEAD-48a80e29d52ded091d1f9425315957892f0070f7.tar.gz
YEAD-48a80e29d52ded091d1f9425315957892f0070f7.tar.bz2
YEAD-48a80e29d52ded091d1f9425315957892f0070f7.zip
* Fixes DELTA issue in GameState => Map Class
* Shader Changes in Menu * Adds New Particles generator for Starfield * Player Movement * Basic Collision Detection
Diffstat (limited to 'scenes/level1_scene.lua')
-rw-r--r--scenes/level1_scene.lua14
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()