From 48a80e29d52ded091d1f9425315957892f0070f7 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Mon, 28 Feb 2022 02:48:20 +0530 Subject: * Fixes DELTA issue in GameState => Map Class * Shader Changes in Menu * Adds New Particles generator for Starfield * Player Movement * Basic Collision Detection --- scenes/level1_scene.lua | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'scenes/level1_scene.lua') 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() -- cgit v1.2.3