From 8e7268c661e8df25224c907ba68eeb5a9cc5ff11 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sat, 18 Oct 2025 13:21:40 -0400 Subject: graphics: add audio/texture subsytem --- game/src/main.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'game/src') 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> { + // 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(()) } -- cgit v1.2.3-freya