summaryrefslogtreecommitdiff
path: root/game/src
diff options
context:
space:
mode:
Diffstat (limited to 'game/src')
-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(())
}