0.1.0-0-pre.3

This commit is contained in:
2026-09-16 00:46:04 +02:00
parent 8c0252e34e
commit 2c79a05dd6
26 changed files with 589 additions and 53 deletions

View File

@@ -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;
}