aboutsummaryrefslogtreecommitdiff
path: root/scenes/level1_scene.lua
blob: 83d676e07760a774031090a4929569b31622726e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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