mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-08 10:07:51 -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.
|
//! This module contains the main game logic and state.
|
||||||
use std::time::{Duration, Instant};
|
|
||||||
|
|
||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use glam::UVec2;
|
use glam::UVec2;
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
#![windows_subsystem = "windows"]
|
#![windows_subsystem = "windows"]
|
||||||
|
|
||||||
use std::time::Duration;
|
|
||||||
|
|
||||||
use crate::{app::App, constants::LOOP_TIME};
|
use crate::{app::App, constants::LOOP_TIME};
|
||||||
use tracing::info;
|
use tracing::info;
|
||||||
use tracing_error::ErrorLayer;
|
use tracing_error::ErrorLayer;
|
||||||
@@ -85,10 +83,6 @@ pub fn main() {
|
|||||||
|
|
||||||
info!("Starting game loop ({:?})", LOOP_TIME);
|
info!("Starting game loop ({:?})", LOOP_TIME);
|
||||||
|
|
||||||
#[cfg(target_os = "emscripten")]
|
|
||||||
emscripten::set_main_loop_callback(app.run);
|
|
||||||
|
|
||||||
#[cfg(not(target_os = "emscripten"))]
|
|
||||||
loop {
|
loop {
|
||||||
if !app.run() {
|
if !app.run() {
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user