summaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-10-18 13:21:40 -0400
committerFreya Murphy <freya@freyacat.org>2025-10-18 13:21:40 -0400
commit8e7268c661e8df25224c907ba68eeb5a9cc5ff11 (patch)
tree27db2f024ae85d95ca5ba7ead9e637ac3c9c9ee7 /game
parentgraphics: remove anyhow (it was not being used) (diff)
downloadDungeonCrawl-8e7268c661e8df25224c907ba68eeb5a9cc5ff11.tar.gz
DungeonCrawl-8e7268c661e8df25224c907ba68eeb5a9cc5ff11.tar.bz2
DungeonCrawl-8e7268c661e8df25224c907ba68eeb5a9cc5ff11.zip
graphics: add audio/texture subsytem
Diffstat (limited to 'game')
-rw-r--r--game/src/main.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/game/src/main.rs b/game/src/main.rs
index 05a25bd..72cc9b3 100644
--- a/game/src/main.rs
+++ b/game/src/main.rs
@@ -1,8 +1,11 @@
+use std::error::Error;
+
use dungeon::*;
use graphics::*;
-fn main() {
- let mut window = Window::new(720, 480, "game");
+fn main() -> Result<(), Box<dyn Error>> {
+ // Load the window
+ let mut window = Window::new(720, 480, "game")?;
// Initial game state
let dungeon = Dungeon::default();
@@ -12,4 +15,6 @@ fn main() {
// Draw a single frame
window.renderer().draw_frame(&dungeon);
}
+
+ Ok(())
}