diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-11-21 22:25:37 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-11-21 22:25:37 -0500 |
| commit | 654277d89471010f57794b8022385d2a99a15a14 (patch) | |
| tree | c10f98cfae20517c23007b941214a4c5f34bfd51 /game/src/lib.rs | |
| parent | dungeon: add chest usage/textures (diff) | |
| download | DungeonCrawl-654277d89471010f57794b8022385d2a99a15a14.tar.gz DungeonCrawl-654277d89471010f57794b8022385d2a99a15a14.tar.bz2 DungeonCrawl-654277d89471010f57794b8022385d2a99a15a14.zip | |
audio: create orchestration system
Diffstat (limited to 'game/src/lib.rs')
| -rw-r--r-- | game/src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/game/src/lib.rs b/game/src/lib.rs index 3d9c8a7..4572d8e 100644 --- a/game/src/lib.rs +++ b/game/src/lib.rs @@ -104,7 +104,7 @@ impl Game { } UpdateResult::MessageUpdated(changed) => { if changed { - self.window.audio().speak.play(); + //self.window.audio().speak.play(); } } UpdateResult::GameOver => { @@ -115,6 +115,9 @@ impl Game { // Draw a single frame self.window.draw_frame(&self.dungeon); + + // Update audio + self.window.audio().update(); } } } |