From f2e4f563661e5203f0531e37110d060b20b2f04c Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Mon, 2 Aug 2021 17:10:03 +0530 Subject: * Adds Music Management * Code Refactoring * Adds Fonts --- levels/level1.wren | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'levels/level1.wren') diff --git a/levels/level1.wren b/levels/level1.wren index c485924..83d626f 100644 --- a/levels/level1.wren +++ b/levels/level1.wren @@ -1,9 +1,12 @@ import "./level_map" for LevelMap +import "audio" for AudioEngine class Level1 { - construct new() { + construct new(gameState) { _level1 = LevelMap.new("level1") + var channel = AudioEngine.play("level1_bg") + channel.volume = 0.2 } - + update() { } -- cgit v1.2.3