Files
games/crates/apps/game-reflex-poc-desktop/src/main.rs
2026-09-16 08:49:45 +02:00

31 lines
1.2 KiB
Rust

// file: crates/apps/game-reflex-poc-desktop/src/main.rs
// version: 5
#![warn(missing_docs)]
#![deny(unreachable_pub)]
#![forbid(unsafe_code)]
//! SDL3 Desktop development runner for the Reflex POC game library.
fn main() {
let _logging_guard = match game_logging_lib::init_console_tracing() {
std::result::Result::Ok(guard) => guard,
std::result::Result::Err(error) => {
eprintln!("failed to initialize tracing: {error}");
return;
},
};
tracing::info!(target: "games::runner", game = "reflex", "desktop SDL3 runner started");
let _monetization = engine_v1_platform_api::MonetizationCapabilities::disabled();
let runtime = engine_v1_sdl::SdlRuntime::new("Reflex POC", 405, 720, std::time::Duration::from_millis(16));
let mut state = game_reflex_poc::ReflexState::new();
match runtime.run(&mut state) {
std::result::Result::Ok(()) => {},
std::result::Result::Err(error) => {
tracing::error!(target: "games::runner", game = "reflex", %error, "desktop SDL3 runner failed");
eprintln!("Reflex POC desktop runner failed: {error}");
},
}
return;
}