diff options
| author | LLLL Colonq <llll@colonq> | 2026-05-02 16:16:04 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-05-02 16:16:04 -0400 |
| commit | d3bd791297d6aaa7abaf613aafbec99a7bb17823 (patch) | |
| tree | ace9b887fc57681dcbe8a468278cdc74ecff1b2c /src/main.rs | |
| parent | ea5929c74a4e01bcbc776832b5597fceb5261a31 (diff) | |
Eating soup!
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 25a240d..3c8ed4f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,12 @@ mod game; +mod room; #[cfg(not(target_arch = "wasm32"))] pub fn main() -> teleia::Erm<()> { - teleia::run("game", 240, 160, teleia::Options::empty(), game::Game::new) + let room_path = std::env::args().nth(1).unwrap(); + teleia::run("game", 640, 480, teleia::Options::FULLSCREEN_MOUSE, + |ctx| game::Game::new(ctx, &room_path) + ) } #[cfg(target_arch = "wasm32")] |
