diff --git a/.gitignore b/.gitignore index 2f88dbac..69369904 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /target **/*.rs.bk -Cargo.lock \ No newline at end of file +Cargo.lock diff --git a/Cargo.toml b/Cargo.toml index 1e806b22..5c259c97 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,3 +28,4 @@ winit = { version = "0.20.0-alpha3", optional = true } # A personal `ggez` fork that introduces a `FontCache` type to measure text # efficiently and fixes HiDPI issues. ggez = { version = "0.5", git = "https://github.com/hecrj/ggez.git" } +env_logger = "0.6" diff --git a/examples/tour/main.rs b/examples/tour/main.rs index 571bc2e2..1b60207b 100644 --- a/examples/tour/main.rs +++ b/examples/tour/main.rs @@ -13,6 +13,8 @@ use ggez::graphics; use ggez::input::mouse; pub fn main() -> ggez::GameResult { + env_logger::init(); + let (context, event_loop) = { &mut ggez::ContextBuilder::new("iced", "ggez") .window_mode(ggez::conf::WindowMode {