From 20abde4dd780b51840e3498336bf907f0fd9164c Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Thu, 7 May 2026 12:07:02 +0200 Subject: Add Input abstraction between ebiten and simulation update Introduces Input snapshot struct collected once per tick via CollectInput, and UpdateSimulation(Input) as the ebiten-free simulation entrypoint. Integration tests now drive the game through simulated inputs rather than direct method calls. Co-Authored-By: Claude Sonnet 4.6 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index f906dd8..7a24235 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ## Testing -- **Integration tests** Use `Update()` to run N ticks. +- **Integration tests** Use `UpdateSimulation(Input{...})` to drive ticks with simulated inputs — no ebiten runtime needed. - **Performance benchmarks** ## TODO @@ -21,7 +21,7 @@ - [ ] ecs: bitfield for fast checking - [ ] ecs: rename to systems - [ ] perf: measure frame budget -- [ ] abstraction between ebiten and update to handle inputs in a simulation? +- [x] abstraction between ebiten and update to handle inputs in a simulation - [ ] getMoveMap could be a maintained index - [ ] entityAt could be a maintained index -- cgit v1.3