Balance co-op lives, wipe timings, and grid sizes#8
Merged
Conversation
Most of the earlier documentation audit was already incorporated into main's rewritten history. This keeps only the corrections main still needs: - docs/server-architecture.md: wipe phase timings 60/60/120 → 45/45/45 ticks (1.5s each, per WIPE_TIMING in shared/types.ts) and countdown "3...2...1" → 1s (COUNTDOWN_SECONDS = 1) - Lessons_learned.md: lives are per-player (Player.lives is the canonical counter), not a shared pool https://claude.ai/code/session_01F9DNv5dEh5MZPrziuqmkWv
The --help output claimed 'Arrow keys or A/D' for movement, but normalizeKey() in client/src/input.ts only maps arrow keys to movement. Matches README and CLAUDE.md, which document arrows only. https://claude.ai/code/session_01F9DNv5dEh5MZPrziuqmkWv
- Lives are per-player in co-op (5 each), not a shared pool: GameRoom.ts assigns player.lives = 5 per player and the reducer decrements only the hit player's counter. Changed '5 shared' to '5 each' in README, CLAUDE.md, and server-architecture.md. - 4-player alien grid is 13x6 (scaling.ts), not 15x6. - README version badge bumped to 1.1.1 to match package.json and CHANGELOG. specs/vaders-spec.md and CHANGELOG.md left untouched as historical documents. https://claude.ai/code/session_01F9DNv5dEh5MZPrziuqmkWv
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
This PR adjusts game balance parameters for co-op multiplayer and wave transition timings to improve pacing and fairness.
Key Changes
Co-op Lives Model
Player.livescounter; game ends when all players are dead and out of livesWave Transition Timings
wipe_exit: 60 ticks → 45 ticks (iris closing)wipe_hold: 60 ticks → 45 ticks (black screen with wave title)wipe_reveal: 120 ticks → 45 ticks (iris opening, aliens enter)Grid Sizing
Documentation & UI
Implementation Details
Player.livesinstead of shared poolhttps://claude.ai/code/session_01F9DNv5dEh5MZPrziuqmkWv