1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
mod animation; mod controls; mod game; mod levels; mod meters; mod upzone; pub fn main() { widgetry::run(widgetry::Settings::new("experiment"), |ctx| { let mut opts = map_gui::options::Options::default(); opts.color_scheme = map_gui::colors::ColorSchemeChoice::NightMode; let app = map_gui::SimpleApp::new_with_opts(ctx, abstutil::CmdArgs::new(), opts); let states = vec![levels::TitleScreen::new(ctx)]; (app, states) }); } #[cfg(target_arch = "wasm32")] use wasm_bindgen::prelude::*; #[cfg(target_arch = "wasm32")] #[wasm_bindgen(start)] pub fn run() { main(); }