mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-14 19:55:02 +01:00
23 lines
377 B
Rust
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();
|
|
}
|
|
}
|