0.1.0-0-pre.3
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/apps/game-reflex-poc-desktop/src/main.rs
|
||||
// version: 1
|
||||
// version: 2
|
||||
|
||||
#![warn(missing_docs)]
|
||||
#![deny(unreachable_pub)]
|
||||
@@ -7,10 +7,16 @@
|
||||
|
||||
//! Desktop development runner for the Reflex POC game library.
|
||||
//!
|
||||
//! This binary is intentionally minimal until the executable SDL3 runtime is introduced.
|
||||
//! This binary exercises the platform-independent fixed-step loop. SDL3 windowing and physical input mapping are introduced in the next dedicated delta.
|
||||
|
||||
fn main() {
|
||||
let state = game_reflex_poc::ReflexState::new();
|
||||
println!("Reflex POC desktop runner: score={}", state.score());
|
||||
let _monetization = engine_v1_platform_api::MonetizationCapabilities::disabled();
|
||||
let input = engine_v1_common::InputState::none().with_action(engine_v1_common::GameAction::Primary, true);
|
||||
let mut runner = engine_v1_common::FixedStepRunner::new(std::time::Duration::from_millis(16));
|
||||
let mut state = game_reflex_poc::ReflexState::new();
|
||||
for _ in 0..3 {
|
||||
runner.tick(&mut state, input);
|
||||
}
|
||||
println!("Reflex POC desktop runner: score={} frames={}", state.score(), runner.next_frame_index());
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user