feat(TASK-051): add local 2-player support - #39
Merged
Merged
Conversation
Extend core/world.zig and core/abi.zig with real 2-player semantics (shared world status, per-player alive projection, two-phase collision with head-to-head mutual kill) per decision-034, then wire the Godot presentation/input layers up to it per decision-035: a second BoardView for player 1, an arrows/WASD input split, ABI-free shared-status derivation for pause/restart/overlay gating, and per-player HUD score/ status labels. include/neo_snake.h is untouched, satisfying AC#1.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
core/world.zig/core/abi.zigwith real 2-player semantics (shared world status, per-playeraliveprojection, two-phase collision with head-to-head mutual kill) per decision-034BoardViewfor player 1, an arrows/WASD input split, ABI-free shared-status derivation for pause/restart/overlay gating, and per-player HUD score/status labelsinclude/neo_snake.his untouched (AC#1)Test plan
task checkgreen: 123 test cases / 0 errors / 0 failures / 0 flaky / 0 skipped across 20 suites, plus audio/music checksgit diff --stat main -- include/neo_snake.hproduces zero output (AC#1)game/tests/test_game_screen.gdcover independent per-player input routing and per-player HUD updates (AC#2/feat: add oracle corpus generator (TASK-014) #3)