game-wip-dontplay/src/main.rs
2023-04-01 21:01:14 +02:00

23 lines
377 B
Rust

mod app;
mod game;
mod graphics;
mod math;
mod res;
mod world;
use app::App;
fn try_main() -> anyhow::Result<()> {
let mut app = App::new()?;
app.do_game_loop();
Ok(())
}
fn main() {
if let Err(e) = try_main() {
rfd::MessageDialog::new()
.set_title("Fatal error")
.set_description(&e.to_string())
.show();
}
}