bevy/examples/wasm/hello_wasm.rs
Tomasz Sterna 2b0ee24a5d
Implement single threaded task scheduler for WebAssembly (#496)
* Add hello_wasm example

* Implement single threaded task scheduler for WebAssembly
2020-09-15 18:05:31 -07:00

14 lines
370 B
Rust

extern crate console_error_panic_hook;
use bevy::prelude::*;
use std::panic;
fn main() {
panic::set_hook(Box::new(console_error_panic_hook::hook));
console_log::init_with_level(log::Level::Debug).expect("cannot initialize console_log");
App::build().add_system(hello_wasm_system.system()).run();
}
fn hello_wasm_system() {
log::info!("hello wasm");
}