diff options
author | Indrajith K L | 2021-08-03 23:06:26 +0530 |
---|---|---|
committer | Indrajith K L | 2021-08-03 23:06:26 +0530 |
commit | c3c5832587bfd36d12790537c5acb36c02574ddb (patch) | |
tree | 8890b34a79d411180284ddb8960814482de2997b /levels | |
parent | 705886d371cf2cfa619b321c0d87caca0773a789 (diff) | |
download | rebirth-wren-c3c5832587bfd36d12790537c5acb36c02574ddb.tar.gz rebirth-wren-c3c5832587bfd36d12790537c5acb36c02574ddb.tar.bz2 rebirth-wren-c3c5832587bfd36d12790537c5acb36c02574ddb.zip |
Failed attempt to build collision detection
Diffstat (limited to 'levels')
-rw-r--r-- | levels/level1.wren | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/levels/level1.wren b/levels/level1.wren index d113a25..d3daaf8 100644 --- a/levels/level1.wren +++ b/levels/level1.wren @@ -5,20 +5,20 @@ import "./config" for Config class Level1 { construct new(gameState) { __gameState = gameState - _level1 = LevelMap.new("level1") + _level1 = LevelMap.new("level1", __gameState) var channel = AudioEngine.play("level1_bg") channel.volume = 0.2 } update() { + if(Controls.justPressed(Config.KeyboardConstants["ATTACK"])) { } - _level1.update() + } draw(dt) { - _level1.render(0,0) - _level1.draw(dt) + _level1.draw(0,0) } }
\ No newline at end of file |