diff --git a/src/game.rs b/src/game.rs index 12e4292..fe9dff2 100644 --- a/src/game.rs +++ b/src/game.rs @@ -1,5 +1,4 @@ //! This module contains the main game logic and state. -use std::time::{Duration, Instant}; use anyhow::Result; use glam::UVec2; diff --git a/src/main.rs b/src/main.rs index dc3f6da..b32fa74 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,5 @@ #![windows_subsystem = "windows"] -use std::time::Duration; - use crate::{app::App, constants::LOOP_TIME}; use tracing::info; use tracing_error::ErrorLayer; @@ -85,10 +83,6 @@ pub fn main() { info!("Starting game loop ({:?})", LOOP_TIME); - #[cfg(target_os = "emscripten")] - emscripten::set_main_loop_callback(app.run); - - #[cfg(not(target_os = "emscripten"))] loop { if !app.run() { break;