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/Cargo.toml
# version: 1
# version: 2
[package]
name = "game-reflex-poc-desktop"
@@ -11,6 +11,8 @@ authors.workspace = true
publish.workspace = true
[dependencies]
engine-v1-common = { path = "../../engines/engine-v1-common" }
engine-v1-platform-api = { path = "../../engines/engine-v1-platform-api" }
game-reflex-poc = { path = "../../games/game-reflex-poc" }
[lints]

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

View File

@@ -1,5 +1,5 @@
# file: crates/apps/game-snake-poc-desktop/Cargo.toml
# version: 1
# version: 2
[package]
name = "game-snake-poc-desktop"
@@ -11,6 +11,8 @@ authors.workspace = true
publish.workspace = true
[dependencies]
engine-v1-common = { path = "../../engines/engine-v1-common" }
engine-v1-platform-api = { path = "../../engines/engine-v1-platform-api" }
game-snake-poc = { path = "../../games/game-snake-poc" }
[lints]

View File

@@ -1,5 +1,5 @@
// file: crates/apps/game-snake-poc-desktop/src/main.rs
// version: 1
// version: 2
#![warn(missing_docs)]
#![deny(unreachable_pub)]
@@ -7,10 +7,16 @@
//! Desktop development runner for the Snake 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_snake_poc::SnakeState::new();
println!("Snake POC desktop runner: length={}", state.length());
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_snake_poc::SnakeState::new();
for _ in 0..3 {
runner.tick(&mut state, input);
}
println!("Snake POC desktop runner: length={} frames={}", state.length(), runner.next_frame_index());
return;
}