Bug Fixes
Player Placement Basic Player Movement
This commit is contained in:
@@ -1,17 +1,24 @@
|
||||
import "./level_map" for LevelMap
|
||||
import "audio" for AudioEngine
|
||||
class Level1 {
|
||||
import "./controls" for Controls
|
||||
import "./config" for Config
|
||||
class Level1 {
|
||||
construct new(gameState) {
|
||||
__gameState = gameState
|
||||
_level1 = LevelMap.new("level1")
|
||||
var channel = AudioEngine.play("level1_bg")
|
||||
channel.volume = 0.2
|
||||
}
|
||||
|
||||
update() {
|
||||
if(Controls.justPressed(Config.KeyboardConstants["ATTACK"])) {
|
||||
}
|
||||
|
||||
_level1.update()
|
||||
}
|
||||
|
||||
draw(dt) {
|
||||
_level1.draw(0,0)
|
||||
_level1.render(0,0)
|
||||
_level1.draw(dt)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user