mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-16 12:25:02 +01:00
Add tile graphic
This commit is contained in:
parent
d78726eb5b
commit
fbc7e35f9e
11 changed files with 812 additions and 20 deletions
15
src/main.rs
15
src/main.rs
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue