UI: show player tank condition by remaining lives #6

Closed
opened 4 weeks ago by laidaixi · 2 comments
Owner

Goal

The player tank should visually show a different condition at different remaining lives.

Scope

Prefer src/game.js only unless a small CSS class is clearly needed. Preserve existing DOM ids.

Requirements

  • At 3 lives, tank looks healthy/normal.
  • At 2 lives, tank shows damaged/intermediate condition.
  • At 1 life, tank shows critical condition.
  • Condition should update immediately after the player is hit and after restart.
  • Do not change core gameplay balance.

Files allowed

  • src/game.js
  • src/styles.css only if visual styling cannot be kept in canvas drawing

Files forbidden

  • index.html unless necessary for accessibility text
  • Git/config files

Acceptance checks

  • Player tank appearance differs for 3, 2, and 1 lives.
  • Restart returns tank to healthy state.
  • Existing HUD lives count remains correct.

Handoff notes

  • Agent: qoder
  • Branch: agent/qoder/player-condition-issue-N
  • Integration owner: codex
## Goal The player tank should visually show a different condition at different remaining lives. ## Scope Prefer src/game.js only unless a small CSS class is clearly needed. Preserve existing DOM ids. ## Requirements - At 3 lives, tank looks healthy/normal. - At 2 lives, tank shows damaged/intermediate condition. - At 1 life, tank shows critical condition. - Condition should update immediately after the player is hit and after restart. - Do not change core gameplay balance. ## Files allowed - src/game.js - src/styles.css only if visual styling cannot be kept in canvas drawing ## Files forbidden - index.html unless necessary for accessibility text - Git/config files ## Acceptance checks - Player tank appearance differs for 3, 2, and 1 lives. - Restart returns tank to healthy state. - Existing HUD lives count remains correct. ## Handoff notes - Agent: qoder - Branch: agent/qoder/player-condition-issue-N - Integration owner: codex
laidaixi added the agent:qoder area:ui status:doing labels 4 weeks ago
Poster
Owner

Codex orchestrator: assigning to QoderCLI in branch agent/qoder/player-condition-issue-6.

Codex orchestrator: assigning to QoderCLI in branch agent/qoder/player-condition-issue-6.
laidaixi added status:review and removed status:doing labels 4 weeks ago
Poster
Owner

Codex orchestrator: integrated branch agent/qoder/player-condition-issue-6 into main via local verified merge commit a258454, then pushed main. Validation: node --check, git diff --check, browser smoke test with no page errors.

Codex orchestrator: integrated branch agent/qoder/player-condition-issue-6 into main via local verified merge commit a258454, then pushed main. Validation: node --check, git diff --check, browser smoke test with no page errors.
laidaixi added status:done and removed status:review labels 4 weeks ago
laidaixi closed this issue 4 weeks ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: laidaixi/tank-battle#6
Loading…
There is no content yet.