Add tile graphic

This commit is contained in:
crumblingstatue 2023-04-01 21:01:14 +02:00
parent d78726eb5b
commit fbc7e35f9e
11 changed files with 812 additions and 20 deletions

View file

@ -2,11 +2,22 @@ mod app;
mod game;
mod graphics;
mod math;
mod res;
mod world;
use app::App;
fn main() {
let mut app = App::new();
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();
}
}