Bug Fixes

Player Placement
Basic Player Movement
This commit is contained in:
Indrajith K L
2021-08-03 17:53:10 +05:30
parent 5bd12d5a65
commit 705886d371
13 changed files with 236 additions and 60 deletions

View File

@@ -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)
}
}