mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-07 16:07:54 -06:00
fix: remove emscripten main_loop_callback targeted code
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
//! This module contains the main game logic and state.
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
use anyhow::Result;
|
||||
use glam::UVec2;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user