aboutsummaryrefslogtreecommitdiff
path: root/levels/level1.wren
blob: d3daaf85fd46d05c6ebd606b62a76151fa890688 (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
import "./level_map" for LevelMap
import "audio" for AudioEngine
import "./controls" for Controls
import "./config" for Config
class Level1 { 
    construct new(gameState) {
        __gameState = gameState
        _level1 = LevelMap.new("level1", __gameState)
        var channel = AudioEngine.play("level1_bg")
        channel.volume = 0.2
    }

    update() {
        
        if(Controls.justPressed(Config.KeyboardConstants["ATTACK"])) {
        }

        
    }

    draw(dt) {
        _level1.draw(0,0)
    }
}