blob: 30406df4f6eb4b4ade67879c7713086fdba853a9 (
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
|
level1 = {} -- Level1 State
Map = require("utils.map")
-- imports
require("utils.constants")
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()
end
function level1:keypressed(key, scancode)
map:keypressed(key, scancode)
end
function level1:leave()
map = nil
end
return level1
|