summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
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")]